Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: fix null (#16510)

Danny Xu454e5595a1d3
diff --git a/frontend/src/store/modules/sqlEditor/webTerminal.ts b/frontend/src/store/modules/sqlEditor/webTerminal.ts
index ceddeb95d3..b7cf6928f3 100644
--- a/frontend/src/store/modules/sqlEditor/webTerminal.ts
+++ b/frontend/src/store/modules/sqlEditor/webTerminal.ts
@@ -184,7 +184,9 @@ const createStreamingQueryController = () => {
return () => {
console.debug("teardown");
- requestSubscription.unsubscribe();
+ if (requestSubscription) {
+ requestSubscription.unsubscribe();
+ }
};
});