Move columns definition out of middleware scope
[arvados-workbench2.git] / src / store / data-explorer / data-explorer-reducer.ts
index 02ebece23730f2f8596efd1447ce23b3d1ae838c..1fde652d07b3941bfa9b02207352101a72a4ba4a 100644 (file)
@@ -13,7 +13,7 @@ export interface DataExplorer {
     itemsAvailable: number;
     page: number;
     rowsPerPage: number;
-    rowsPerPageOptions?: number[];
+    rowsPerPageOptions: number[];
     searchValue: string;
 }
 
@@ -27,7 +27,7 @@ export const initialDataExplorer: DataExplorer = {
     searchValue: ""
 };
 
-export type DataExplorerState = Record<string, DataExplorer | undefined>;
+export type DataExplorerState = Record<string, DataExplorer>;
 
 export const dataExplorerReducer = (state: DataExplorerState = {}, action: DataExplorerAction) =>
     dataExplorerActions.match(action, {