Skip to content

Commit

Permalink
Fix DanFessler#35 - console error caused by componentWillReceiveProps
Browse files Browse the repository at this point in the history
  • Loading branch information
1v authored Mar 12, 2024
1 parent 52b6222 commit bd6df4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PanelGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default class PanelGroup extends React.Component {
}

// reload panel configuration if props update
componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
const nextPanels = nextProps.panelWidths;

// Only update from props if we're supplying the props in the first place
Expand Down

0 comments on commit bd6df4c

Please sign in to comment.