From b36b89f123caf0ca0d282cf889d0595122d8778d Mon Sep 17 00:00:00 2001 From: Gytis Vinclovas Date: Tue, 4 Jul 2017 17:43:45 +0300 Subject: [PATCH] When timestamps are enabled, it actually checks them before applying changes. --- addons/knobs/src/components/Panel.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/addons/knobs/src/components/Panel.js b/addons/knobs/src/components/Panel.js index 5682dd30e523..312c73a12e8c 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() {