Skip to content

Commit

Permalink
fix(toolbarFieldGranularity): ent-3644 reset inventory offset (#602)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcabrera committed Apr 26, 2021
1 parent f5ca9dc commit 6156e27
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions src/components/toolbar/toolbarFieldGranularity.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6156e27

Please sign in to comment.