diff --git a/client/src/stores/userTagsStore.ts b/client/src/stores/userTagsStore.ts index 3c009c8f46d..47f717ddea0 100644 --- a/client/src/stores/userTagsStore.ts +++ b/client/src/stores/userTagsStore.ts @@ -11,7 +11,7 @@ export const useUserTagsStore = defineStore("userTagsStore", () => { const userTags = computed(() => { let tags: string[]; if (currentUser.value && !currentUser.value.isAnonymous) { - tags = [...currentUser.value.tags_used, ...localTags.value]; + tags = [...(currentUser.value.tags_used ?? []), ...localTags.value]; } else { tags = localTags.value; }