From 43b622cb03703c6f7f37665fcf7f3a028a6f6d07 Mon Sep 17 00:00:00 2001 From: mertmit Date: Sat, 16 Dec 2023 16:23:28 +0300 Subject: [PATCH] fix: poll plugin Signed-off-by: mertmit --- packages/nc-gui/plugins/poller.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui/plugins/poller.ts b/packages/nc-gui/plugins/poller.ts index db860be4f8..8ef0242465 100644 --- a/packages/nc-gui/plugins/poller.ts +++ b/packages/nc-gui/plugins/poller.ts @@ -1,7 +1,7 @@ import type { Api as BaseAPI } from 'nocodb-sdk' import { defineNuxtPlugin } from '#imports' -export default defineNuxtPlugin(async (nuxtApp) => { +const pollPlugin = async (nuxtApp) => { const api: BaseAPI = nuxtApp.$api as any // unsubscribe all if signed out @@ -89,4 +89,10 @@ export default defineNuxtPlugin(async (nuxtApp) => { } nuxtApp.provide('poller', poller) +} + +export default defineNuxtPlugin(async function (nuxtApp) { + if (!isEeUI) return await pollPlugin(nuxtApp) }) + +export { pollPlugin }