Browse Source

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

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

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

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

Loading…
Cancel
Save