diff --git a/src/store/job.ts b/src/store/job.ts index 138ad29..6a5a119 100644 --- a/src/store/job.ts +++ b/src/store/job.ts @@ -26,9 +26,9 @@ export const useJobStore = defineStore("job", () => { } } - const breakdownData = computed(() => job2G6TreeGraph(_job.value)); + const breakdownData = computed(() => job2G6TreeGraph(_job?.value)); - const workflowData = computed(() => jobLeafNode2G6Graph(_job.value)); + const workflowData = computed(() => jobLeafNode2G6Graph(_job?.value)); return { updateData, breakdownData, workflowData }; });