Browse Source

chore: lint

pull/9540/head
Pranav C 2 months ago
parent
commit
557be16907
  1. 4
      packages/nc-gui/plugins/redirect.ts

4
packages/nc-gui/plugins/redirect.ts

@ -24,7 +24,7 @@ export default defineNuxtPlugin(function (nuxtApp) {
// put inside app:created hook to ensure global state is available // put inside app:created hook to ensure global state is available
nuxtApp.hooks.hook('app:created', () => { nuxtApp.hooks.hook('app:created', () => {
const {token} = useGlobal() const { token } = useGlobal()
watch( watch(
() => token.value ?? (nuxtApp.$state as ReturnType<typeof useGlobal>)?.token?.value, () => token.value ?? (nuxtApp.$state as ReturnType<typeof useGlobal>)?.token?.value,
async (newToken, oldToken) => { async (newToken, oldToken) => {
@ -55,7 +55,7 @@ export default defineNuxtPlugin(function (nuxtApp) {
console.error(e) console.error(e)
} }
}, },
{immediate: true}, { immediate: true },
) )
}) })
}) })

Loading…
Cancel
Save