Skip to content

Commit

Permalink
default column configurator to an empty array of columns
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Mar 4, 2022
1 parent e91c407 commit ce40e3a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const columnConfiguratorLogic = kea<columnConfiguratorLogicType<ColumnCon
},
reducers: ({ props }) => ({
selectedColumns: [
props.selectedColumns,
props.selectedColumns || [],
{
selectColumn: (state, { column }) => Array.from(new Set([...state, column])),
unselectColumn: (state, { column }) => state.filter((c) => c !== column),
Expand Down

0 comments on commit ce40e3a

Please sign in to comment.