Browse Source

fix: avoid integration load if user is not signed-in

pull/9894/head
Pranav C 6 days ago
parent
commit
d4e9a3e7de
  1. 12
      packages/nc-gui/composables/useNocoAi.ts

12
packages/nc-gui/composables/useNocoAi.ts

@ -348,9 +348,17 @@ export const useNocoAi = createSharedComposable(() => {
} }
} }
onMounted(() => { const { signedIn } = useGlobal()
watch(
signedIn,
(val) => {
if (val) {
loadAiIntegrations() loadAiIntegrations()
}) }
},
{ immediate: true },
)
return { return {
aiIntegrationAvailable, aiIntegrationAvailable,

Loading…
Cancel
Save