diff --git a/src/components/toolbar/__tests__/__snapshots__/toolbarFieldGranularity.test.js.snap b/src/components/toolbar/__tests__/__snapshots__/toolbarFieldGranularity.test.js.snap index c73e8e1ab..e80177687 100644 --- a/src/components/toolbar/__tests__/__snapshots__/toolbarFieldGranularity.test.js.snap +++ b/src/components/toolbar/__tests__/__snapshots__/toolbarFieldGranularity.test.js.snap @@ -29,6 +29,9 @@ exports[`ToolbarFieldGranularity Component should handle updating granularity th Array [ Array [ Array [ + Object { + "type": "SET_QUERY_CLEAR_INVENTORY_LIST", + }, Object { "granularity": "daily", "type": "SET_QUERY_RHSM_granularity", diff --git a/src/components/toolbar/toolbarFieldGranularity.js b/src/components/toolbar/toolbarFieldGranularity.js index af7793084..78b791309 100644 --- a/src/components/toolbar/toolbarFieldGranularity.js +++ b/src/components/toolbar/toolbarFieldGranularity.js @@ -46,6 +46,9 @@ const ToolbarFieldGranularity = ({ options, t, value, viewId }) => { const onSelect = event => { const { startDate, endDate } = dateHelpers.getRangedDateTime(event.value); store.dispatch([ + { + type: reduxTypes.query.SET_QUERY_CLEAR_INVENTORY_LIST + }, { type: reduxTypes.query.SET_QUERY_RHSM_TYPES[RHSM_API_QUERY_TYPES.GRANULARITY], viewId,