This commit is contained in:
parent
5deb07f09d
commit
8eaa893994
4 changed files with 104 additions and 71 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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(() =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue