Skip to content

Commit

Permalink
Fix possible invariant state mutation
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Feb 6, 2025
1 parent 330d246 commit 7606334
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/StandardApp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ class AppContainerComponent extends React.Component {
}
loadThemes = () => {
this.themesLoaded = true;
const {params, state, permalinkInvalid} = this.props.startupConfig;
const {state, permalinkInvalid} = this.props.startupConfig;
const params = {...this.props.startupConfig.params}; // Clone as changed below

// Warn if permalink key is invalid
if (permalinkInvalid) {
Expand Down

0 comments on commit 7606334

Please sign in to comment.