Skip to content

Commit

Permalink
fix(filterChange): replace initial null values with empty array to fi…
Browse files Browse the repository at this point in the history
…x mobile ui (#2193)

Co-authored-by: Adonis Puente <[email protected]>
  • Loading branch information
mkholjuraev and adonispuente authored May 7, 2024
1 parent 4c9d70f commit 71b4ecc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/filters/useRhcdFilter.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useState } from 'react';
import { RHCD_FILTER_KEY, rhcdOptions } from '../../Utilities/index';

export const rhcdFilterState = { rhcdFilter: null };
export const rhcdFilterState = { rhcdFilter: [] };
export const RHCD_FILTER = 'RHCD_FILTER';
export const rhcdFilterReducer = (_state, { type, payload }) => ({
...(type === RHCD_FILTER && {
Expand Down
2 changes: 1 addition & 1 deletion src/components/filters/useUpdateMethodFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
} from '../../Utilities/index';
import useFeatureFlag from '../../Utilities/useFeatureFlag';

export const updateMethodFilterState = { updateMethodFilter: null };
export const updateMethodFilterState = { updateMethodFilter: [] };
export const UPDATE_METHOD_FILTER = 'UPDATE_METHOD_FILTER';
export const updateMethodFilterReducer = (_state, { type, payload }) => ({
...(type === UPDATE_METHOD_FILTER && {
Expand Down

0 comments on commit 71b4ecc

Please sign in to comment.