Update bindDataExplorerActions to use middleware service
authorMichal Klobukowski <michal.klobukowski@contractors.roche.com>
Thu, 26 Jul 2018 09:20:34 +0000 (11:20 +0200)
committerMichal Klobukowski <michal.klobukowski@contractors.roche.com>
Thu, 26 Jul 2018 09:20:34 +0000 (11:20 +0200)
Feature #13887

Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski <michal.klobukowski@contractors.roche.com>

src/store/data-explorer/data-explorer-action.ts

index a2e229de7605aab8014a631bf98e47b85993cb46..4ce371c3a47dcc97f43884a5a48ca9cd0588769c 100644 (file)
@@ -5,6 +5,7 @@
 import { default as unionize, ofType, UnionOf } from "unionize";
 import { DataTableFilterItem } from "../../components/data-table-filters/data-table-filters";
 import { DataColumns } from "../../components/data-table/data-table";
+import { DataExplorerMiddlewareService } from "./data-explorer-middleware-service";
 
 export const dataExplorerActions = unionize({
     RESET_PAGINATION: ofType<{ id: string }>(),
@@ -21,7 +22,7 @@ export const dataExplorerActions = unionize({
 
 export type DataExplorerAction = UnionOf<typeof dataExplorerActions>;
 
-export const bindDataExplorerActions = (id: string) => ({
+export const bindDataExplorerActions = ({ Id: id }: DataExplorerMiddlewareService) => ({
     ...dataExplorerActions,
     RESET_PAGINATION: () =>
         dataExplorerActions.RESET_PAGINATION({ id }),