Ver Fonte

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

sw há 1 mês atrás
pai
commit
ab0f6e535b
1 ficheiros alterados com 1 adições e 1 exclusões
  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)}`
         );