Explorar o código

fix specialTagList null

Michael Wang %!s(int64=3) %!d(string=hai) anos
pai
achega
eb4b1640cd

+ 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
     );