Make code work as documented. Review mask does not need 'show: true'. (#11687)

Signed-off-by: Ingmar van Dijk <ingmar.van.dijk@philips.com>
This commit is contained in:
Ingmar van Dijk
2022-05-27 10:33:07 +02:00
parent 7d96a85399
commit 115214b719
2 changed files with 4 additions and 5 deletions
@@ -41,7 +41,6 @@ describe('MultistepJsonForm', () => {
type: 'string',
'ui:backstage': {
review: {
show: true,
mask: '******',
},
},
@@ -94,14 +94,14 @@ export function getReviewData(formData: Record<string, any>, steps: Step[]) {
}
const review = uiSchema['ui:backstage'].review as JsonObject;
if (!review.show) {
continue;
}
if (review.mask) {
reviewData[key] = review.mask;
continue;
}
if (!review.show) {
continue;
}
reviewData[key] = formData[key];
}
}