Skip to content

Commit

Permalink
bug: check for localStorage for SSR
Browse files Browse the repository at this point in the history
  • Loading branch information
Domino987 committed May 7, 2022
1 parent b8023ea commit ce73835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/material-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default class MaterialTable extends React.Component {

setDataManagerFields(props, isInit, prevColumns) {
const savedColumns = {};
if (props.options.persistentGroupingsId) {
if (props.options.persistentGroupingsId && localStorage) {
let materialTableGroupings = localStorage.getItem(
'material-table-groupings'
);
Expand Down

0 comments on commit ce73835

Please sign in to comment.