19865: Adds search value reset action to DataExplorer.
[arvados-workbench2.git] / src / store / data-explorer / data-explorer-reducer.ts
index 1e875054b7bb9a4c18dc578438c8a662ee6a1abc..68f80b3cfcff16f13269cf267c49dbb530ec1bef 100644 (file)
@@ -97,6 +97,9 @@ export const dataExplorerReducer = (
         SET_EXPLORER_SEARCH_VALUE: ({ id, searchValue }) =>
             update(state, id, (explorer) => ({ ...explorer, searchValue })),
 
+        RESET_EXPLORER_SEARCH_VALUE: ({ id }) =>
+            update(state, id, (explorer) => ({ ...explorer, searchValue: '' })),
+
         SET_REQUEST_STATE: ({ id, requestState }) =>
             update(state, id, (explorer) => ({ ...explorer, requestState })),