Bläddra i källkod

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 månad sedan
förälder
incheckning
ab0f6e535b
1 ändrade filer med 1 tillägg och 1 borttagningar
  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)}`
         );