cr change 14461-remove-process-permanently
authorPawel Kowalczyk <pawel.kowalczyk@contractors.roche.com>
Wed, 14 Nov 2018 10:53:31 +0000 (11:53 +0100)
committerPawel Kowalczyk <pawel.kowalczyk@contractors.roche.com>
Wed, 14 Nov 2018 10:53:31 +0000 (11:53 +0100)
Feature #14461

Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk <pawel.kowalczyk@contractors.roche.com>

src/views-components/process-remove-dialog/process-remove-dialog.tsx

index 0994c28a3134b2e0979f409eb35ad96757bd1882..b0db3f9b3dcff084ead5203485ac8c415719319c 100644 (file)
@@ -8,10 +8,6 @@ import { ConfirmationDialog } from "~/components/confirmation-dialog/confirmatio
 import { withDialog, WithDialogProps } from "~/store/dialog/with-dialog";
 import { removeProcessPermanently, REMOVE_PROCESS_DIALOG } from '~/store/processes/processes-actions';
 
-const mapStateToProps = (props: WithDialogProps<string>) => ({
-    ...props,
-});
-
 const mapDispatchToProps = (dispatch: Dispatch, props: WithDialogProps<any>) => ({
     onConfirm: () => {
         props.closeDialog();
@@ -21,5 +17,5 @@ const mapDispatchToProps = (dispatch: Dispatch, props: WithDialogProps<any>) =>
 
 export const RemoveProcessDialog = compose(
     withDialog(REMOVE_PROCESS_DIALOG),
-    connect(mapStateToProps, mapDispatchToProps)
+    connect(null, mapDispatchToProps)
 )(ConfirmationDialog);