diff --git a/src/ts/components/Controls.tsx b/src/ts/components/Controls.tsx index c2adb17d..5326cec7 100644 --- a/src/ts/components/Controls.tsx +++ b/src/ts/components/Controls.tsx @@ -67,10 +67,6 @@ const Controls = ({ setPluginState(store.getState()); }, []); - if (!pluginState) { - return null; - } - const { requestMatchesOnDocModified, debug } = selectPluginConfig(pluginState) const { telemetryAdapter } = useContext(TelemetryContext); const requestMatches = () => { @@ -166,6 +162,12 @@ const Controls = ({ ); }; + if (!pluginState) { + return null; + } + + const { requestMatchesOnDocModified, debug } = selectPluginConfig(pluginState) + return ( <>