diff --git a/addons/knobs/src/components/Panel.js b/addons/knobs/src/components/Panel.js index f83c875641c7..8c4a0bf15783 100644 --- a/addons/knobs/src/components/Panel.js +++ b/addons/knobs/src/components/Panel.js @@ -93,11 +93,10 @@ export default class Panel extends React.Component { queryParams[`knob-${name}`] = Types[knob.type].serialize(knob.value); }); + this.loadedFromUrl = true; + api.setQueryParams(queryParams); + this.setState({ knobs }); } - - this.loadedFromUrl = true; - api.setQueryParams(queryParams); - this.setState({ knobs }); } reset() {