Skip to content

Commit

Permalink
fix: pass outputType when getting dimension ids
Browse files Browse the repository at this point in the history
  • Loading branch information
martinkrulltott committed Jan 5, 2024
1 parent 084bb5d commit 4ebf103
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/modules/layout/layoutGetDimensionIdItemIdsObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import { layoutGetAllDimensions } from './layoutGetAllDimensions.js'

export const layoutGetDimensionIdItemIdsObject = (layout) =>
layoutGetAllDimensions(layout).reduce((obj, dimension) => {
obj[dimensionGetId(dimension)] = dimensionGetItemIds(
dimension,
layout.outputType
)
obj[dimensionGetId(dimension, layout.outputType)] =
dimensionGetItemIds(dimension)
return obj
}, {})

0 comments on commit 4ebf103

Please sign in to comment.