Update docs

This commit is contained in:
Piotr Jamróz
2021-08-16 11:11:58 +02:00
parent 50c70303ff
commit 81148209dd
2 changed files with 1 additions and 2 deletions
@@ -36,6 +36,7 @@ export const GraphiteQueryEditorContext = ({
});
}, []);
// synchronise changes provided in props with editor's state
useEffect(() => {
dispatch(actions.timeRangeChanged(range));
}, [dispatch, range]);
@@ -168,8 +168,6 @@ const reducer = async (action: Action, state: GraphiteQueryEditorState): Promise
handleTargetChanged(state);
}
if (actions.runQuery.match(action)) {
// handleTargetChanged() builds target from segments/tags/functions only,
// it doesn't handle refresh when target is change explicitly
state.refresh(state.target.target);
}
if (actions.toggleEditorMode.match(action)) {