Hide new command behind feature flag

This commit is contained in:
Nora
2023-06-22 14:00:50 +00:00
parent 7409fe8a56
commit 2898acd67f

View File

@@ -27,6 +27,12 @@ export class QueriesModule extends DisposableObject {
}
public getCommands(): QueriesPanelCommands {
if (!isCanary() || !showQueriesPanel()) {
// Currently, we only want to expose the new panel when we are in development and canary mode
// and the developer has enabled the "Show queries panel" flag.
return {} as any as QueriesPanelCommands;
}
if (!this.queriesPanel) {
throw new Error("Queries panel not initialized");
}