Browse Source

Merge branch 'master' of origin

sw 1 tuần trước cách đây
mục cha
commit
0e77934c34
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      src/domain/patient/registerLogic.ts
  2. 1 1
      src/hooks/useRegisterState.ts

+ 1 - 1
src/domain/patient/registerLogic.ts

@@ -31,7 +31,7 @@ export async function executeRegisterLogic(store: {
     // 从Redux获取数据
     let values = state.form.formData;
     const selectedViews = state.viewSelection.selectedViews;
-    const currentPatientType = state.viewSelection.currentPatientType;
+    const currentPatientType = state.patientType.current;
     const productName = state.product.productName;
 
     console.log(`从Redux获取的表单数据:${JSON.stringify(values, null, 2)}`);

+ 1 - 1
src/hooks/useRegisterState.ts

@@ -6,7 +6,7 @@ const useRegisterState = () => {
     (state: RootState) => state.viewSelection.selectedViews
   );
   const currentPatientType = useSelector(
-    (state: RootState) => state.viewSelection.currentPatientType
+    (state: RootState) => state.patientType.current
   );
 
   return { selectedViews, currentPatientType };