projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
conflicts
[arvados-workbench2.git]
/
src
/
store
/
keep-services
/
keep-services-actions.ts
diff --git
a/src/store/keep-services/keep-services-actions.ts
b/src/store/keep-services/keep-services-actions.ts
index 1de6802e7e37c1e8257305e8220289cc02614acc..54a7c3fe87161b6488d0060c576ae7e7dbcd2af5 100644
(file)
--- a/
src/store/keep-services/keep-services-actions.ts
+++ b/
src/store/keep-services/keep-services-actions.ts
@@
-39,9
+39,9
@@
export const loadKeepServicesPanel = () =>
}
};
}
};
-export const openKeepServiceAttributesDialog = (
index: number
) =>
+export const openKeepServiceAttributesDialog = (
uuid: string
) =>
(dispatch: Dispatch, getState: () => RootState) => {
(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 } }));
};
dispatch(dialogActions.OPEN_DIALOG({ id: KEEP_SERVICE_ATTRIBUTES_DIALOG, data: { keepService } }));
};