|
@@ -209,10 +209,10 @@ const bodyPositionListSlice = createSlice({
|
|
(state) => {
|
|
(state) => {
|
|
const newExposureStatus = determineExposureStatus(state.bodyPositions);
|
|
const newExposureStatus = determineExposureStatus(state.bodyPositions);
|
|
state.exposureStatus = newExposureStatus;
|
|
state.exposureStatus = newExposureStatus;
|
|
- bodyPositionListSlice.caseReducers.setExposureStatus(state, {
|
|
|
|
- payload: newExposureStatus,
|
|
|
|
- type: 'setExposureStatus',
|
|
|
|
- });
|
|
|
|
|
|
+ // bodyPositionListSlice.caseReducers.setExposureStatus(state, {
|
|
|
|
+ // payload: newExposureStatus,
|
|
|
|
+ // type: 'setExposureStatus',
|
|
|
|
+ // });
|
|
}
|
|
}
|
|
);
|
|
);
|
|
},
|
|
},
|
|
@@ -226,7 +226,7 @@ const determineExposureStatus = (
|
|
(bp) => bp.dview.expose_status === 'Exposed'
|
|
(bp) => bp.dview.expose_status === 'Exposed'
|
|
);
|
|
);
|
|
const allUnExposed = bodyPositions.every(
|
|
const allUnExposed = bodyPositions.every(
|
|
- (bp) => bp.dview.expose_status === 'UnExposed'
|
|
|
|
|
|
+ (bp) => bp.dview.expose_status === 'Unexposed'
|
|
);
|
|
);
|
|
|
|
|
|
if (allExposed) {
|
|
if (allExposed) {
|