浏览代码

feat(patient-register): replace positions from previous protocols with those from later ones in selected positions list when selecting protocols consecutively
close #43

sw 1 月之前
父节点
当前提交
ab0f6e535b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/states/patient/viewSelection/index.ts

+ 1 - 1
src/states/patient/viewSelection/index.ts

@@ -185,7 +185,7 @@ const viewSelectionSlice = createSlice({
           guid: uuidv4(), // 为每个视图生成一个唯一的guid
         }));
         //3、将这些views添加到selectedViews中
-        state.selectedViews = [...extendedViews];
+        state.selectedViews = [...state.selectedViews, ...extendedViews];
         console.log(
           `Fetching views by procedure ID: fulfilled ${JSON.stringify(state.availableViews)}`
         );