conflicts
[arvados-workbench2.git] / src / store / keep-services / keep-services-actions.ts
index 1de6802e7e37c1e8257305e8220289cc02614acc..54a7c3fe87161b6488d0060c576ae7e7dbcd2af5 100644 (file)
@@ -39,9 +39,9 @@ export const loadKeepServicesPanel = () =>
         }
     };
 
-export const openKeepServiceAttributesDialog = (index: number) =>
+export const openKeepServiceAttributesDialog = (uuid: string) =>
     (dispatch: Dispatch, getState: () => RootState) => {
-        const keepService = getState().keepServices[index];
+        const keepService = getState().keepServices.find(it => it.uuid === uuid);
         dispatch(dialogActions.OPEN_DIALOG({ id: KEEP_SERVICE_ATTRIBUTES_DIALOG, data: { keepService } }));
     };