Skip to content

Commit

Permalink
LPD-15145 Clear mapping of DSM fields in cards visualization mode
Browse files Browse the repository at this point in the history
  • Loading branch information
chestofwonders authored and brianchandotcom committed Apr 5, 2024
1 parent 753069e commit f7fa84a
Showing 1 changed file with 2 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default function Cards(props: IFDSViewSectionProps) {
);

if (!fdsCardsSection) {
return cardsSection;
return {label: cardsSection.label, name: cardsSection.name};
}

return {
Expand Down Expand Up @@ -161,26 +161,9 @@ export default function Cards(props: IFDSViewSectionProps) {
return;
}

const fdsCardsSection: IFDSCardsSection = await response.json();

closeModal();

setCardsSections(
cardsSections.map((cardsSection) => {
if (cardsSection.name !== fdsCardsSection.name) {
return cardsSection;
}

return {
...cardsSection,
externalReferenceCode:
fdsCardsSection.externalReferenceCode,
field: {
name: fdsCardsSection.fieldName,
},
};
})
);
getFDSCardsSections();

openDefaultSuccessToast();
};
Expand Down

0 comments on commit f7fa84a

Please sign in to comment.