Skip to content

Commit

Permalink
BUGFIX: Allow dimension preset keys to be different from values for D…
Browse files Browse the repository at this point in the history
…imensionsMenu
  • Loading branch information
dlubitz committed Jan 30, 2024
1 parent 41126c7 commit 7cfe27a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ protected function buildItems()
}

// determine metadata for target dimensions of node
array_walk($targetDimensions, function (&$dimensionValue, $dimensionName) use ($pinnedDimensionName, $presets) {
array_walk($targetDimensions, static function (&$dimensionValue, $dimensionName) use ($pinnedDimensionName, $presets) {
$dimensionValue = [
'value' => $dimensionValue,
'label' => $presets[$dimensionName]['label'],
Expand Down

0 comments on commit 7cfe27a

Please sign in to comment.