This commit is contained in:
isUnknown 2025-10-02 15:12:20 +02:00
parent 5deb07f09d
commit 8eaa893994
4 changed files with 104 additions and 71 deletions

View file

@ -12,7 +12,7 @@ export const useUserStore = defineStore('user', () => {
const { projects } = storeToRefs(useProjectsStore());
const notifications = computed(() => {
return projects.value.flatMap((project) => {
return projects.value?.flatMap((project) => {
if (!project.notifications) return [];
return project.notifications

View file

@ -12,12 +12,12 @@ export const useVirtualSampleStore = defineStore('virtual-sample', () => {
const isLoopAnimationEnabled = ref(false);
const isDownloadTriggered = ref(false);
const step = computed(() => {
return page.value.steps.find((step) => step.id === 'virtualSample');
});
const step = computed(
() => page.value?.steps?.find((s) => s.id === 'virtualSample') ?? []
);
const activeTab = computed(() =>
step.value.files.dynamic ? 'dynamic' : 'static'
step.value.files?.dynamic ? 'dynamic' : 'static'
);
const allVariations = computed(() =>