소스 검색

fix specialTagList null

Michael Wang 3 년 전
부모
커밋
eb4b1640cd
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/features/student/importInspect/MarkBody.vue
  2. 1 1
      src/features/student/inspect/MarkBody.vue

+ 1 - 1
src/features/student/importInspect/MarkBody.vue

@@ -78,7 +78,7 @@ async function processImage() {
     const thisImageTrackList = trackLists.filter(
       (t) => t.offsetIndex === indexInSliceUrls
     );
-    const thisImageTagList = store.currentTask.specialTagList.filter(
+    const thisImageTagList = (store.currentTask.specialTagList || []).filter(
       (t) => t.offsetIndex === indexInSliceUrls
     );
 

+ 1 - 1
src/features/student/inspect/MarkBody.vue

@@ -78,7 +78,7 @@ async function processImage() {
     const thisImageTrackList = trackLists.filter(
       (t) => t.offsetIndex === indexInSliceUrls
     );
-    const thisImageTagList = store.currentTask.specialTagList.filter(
+    const thisImageTagList = (store.currentTask.specialTagList || []).filter(
       (t) => t.offsetIndex === indexInSliceUrls
     );