@hmcts/media-viewer 4.2.39 → 4.2.40-redaction-save-issue

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
@@ -1426,9 +1426,9 @@ function redactionReducer(state = initialRedactionState, action) {
1426
1426
  }
1427
1427
  case REDACT_SUCCESS: {
1428
1428
  const redactedDocumentInfo = action.payload;
1429
+ // Markers persist on the backend, so keep them in state to stay consistent with a reload
1429
1430
  return {
1430
1431
  ...state,
1431
- ...initialRedactionState,
1432
1432
  redactedDocumentInfo
1433
1433
  };
1434
1434
  }