Skip to content

Commit

Permalink
fix: using .value in second part of columns conditional so columns.va…
Browse files Browse the repository at this point in the history
…lue is always array<number> (#462)
  • Loading branch information
albertjcuac authored Mar 13, 2024
1 parent 13b4f27 commit a985dc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/column-picker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@
const { getControlFromPath } = useExperienceControls();
const columns = computed(() =>
isMobile.value ? [2, 1] : getControlFromPath('layout.columnSelector', [4, 2])
isMobile.value ? [2, 1] : getControlFromPath('layout.columnSelector', [4, 2]).value
);
return {
values: columns.value,
values: columns,
icons: { 1: 'Grid1ColIcon', 2: 'Grid2ColIcon', 4: 'Grid4ColIcon' }
};
}
Expand Down

0 comments on commit a985dc2

Please sign in to comment.