Skip to content

Commit

Permalink
more null saftey
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Nov 14, 2024
1 parent 2a6082e commit bdd667b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/CippTable/CIPPTableToptoolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const CIPPTableToptoolbar = ({
if (settings?.columnDefaults[pageName]) {
setColumnVisibility(settings?.columnDefaults[pageName]);
}
}, [settings?.columnDefaults[pageName], router, usedColumns]);
}, [settings?.columnDefaults?.[pageName], router, usedColumns]);

const resetToDefaultVisibility = () => {
settings.handleUpdate({
Expand Down

0 comments on commit bdd667b

Please sign in to comment.