Skip to content

Commit

Permalink
fix: remove DISPLAY ERROR text
Browse files Browse the repository at this point in the history
  • Loading branch information
BCerki committed Jul 12, 2022
1 parent d25306f commit 3c9de16
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/lib/theme/CustomDiffFields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,12 @@ const CUSTOM_DIFF_FIELDS: Record<
id,
formContext?.oldUiSchema?.[props.name]?.["ui:options"]?.text
);
} else if (
!previousValue &&
!formData &&
formContext.operation === "CREATE"
) {
return showStringAdded(id, uiSchema["ui:options"].text as string);
} else {
return <>DISPLAY ERROR</>;
}
Expand Down

0 comments on commit 3c9de16

Please sign in to comment.