import { filter } from 'lodash' ; import { Filter , compareFilters , COMPARE_ALL_OPTIONS } from '../../../../common' ; const isEnabled = ( f ) => f && f . meta && ! f . meta . disabled ; returns { bool } export const onlyDisabledFiltersChanged = ( newFilters ? , oldFilters ? ) => { const newEnabledFilters = filter ( newFilters || [ ] , isEnabled ) ; const oldEnabledFilters = filter ( oldFilters || [ ] , isEnabled ) ; return compareFilters ( oldEnabledFilters , newEnabledFilters , COMPARE_ALL_OPTIONS ) ; } ;