Skip to content

Commit

Permalink
refactor: use specific reducer selector
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardo committed Mar 2, 2023
1 parent d6e703e commit f952cfd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
sGetItemFiltersRoot,
DEFAULT_STATE_ITEM_FILTERS,
} from '../../../../reducers/itemFilters.js'
import { sGetSelected } from '../../../../reducers/selected.js'
import { sGetSelectedId } from '../../../../reducers/selected.js'
import { sGetVisualization } from '../../../../reducers/visualizations.js'
import memoizeOne from '../memoizeOne.js'
import getFilteredVisualization from './getFilteredVisualization.js'
Expand Down Expand Up @@ -145,7 +145,7 @@ const mapStateToProps = (state, ownProps) => {
: DEFAULT_STATE_ITEM_FILTERS

return {
dashboardId: sGetSelected(state).id,
dashboardId: sGetSelectedId(state),
itemFilters,
visualization: sGetVisualization(
state,
Expand Down

0 comments on commit f952cfd

Please sign in to comment.