fix: invite links now will not redirect to login

This commit is contained in:
2026-08-31 22:41:50 +02:00
parent 125a7bd6c5
commit 1bacc58648
2 changed files with 17 additions and 0 deletions
+2
View File
@@ -1,5 +1,6 @@
import { ref, computed } from 'vue'
import { defineStore } from 'pinia'
import { useAuthStore } from '@/stores/auth'
import {
db,
type LocalList,
@@ -438,6 +439,7 @@ export const useListsStore = defineStore('lists', () => {
return ongoingSync
}
if (typeof navigator !== 'undefined' && !navigator.onLine) return
if (!useAuthStore().isAuthenticated) return
ongoingSync = enqueueOperation(() => runSync().then(() => pullFromServer()))
try {