Skip to content

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

fix: tab store actions return type (#1107)

STEVENd936fecad2e1
diff --git a/frontend/src/store/pinia-modules/tab.ts b/frontend/src/store/pinia-modules/tab.ts
index 01080af92a..98046fe1b3 100644
--- a/frontend/src/store/pinia-modules/tab.ts
+++ b/frontend/src/store/pinia-modules/tab.ts
@@ -10,13 +10,13 @@ export const useTabStore = defineStore("tab", {
}),
getters: {
- currentTab(state) {
+ currentTab(state): TabInfo {
const idx = state.tabList.findIndex(
(tab: TabInfo) => tab.id === state.currentTabId
);
return (idx === -1 ? {} : state.tabList[idx]) as TabInfo;
},
- hasTabs(state: TabState) {
+ hasTabs(state: TabState): boolean {
return state.tabList.length > 0;
},
},