From 96a88fe865e137ae1b817041f8fc99fb24a3d84f Mon Sep 17 00:00:00 2001 From: Joseph Garrone Date: Sun, 2 Jun 2024 00:31:08 +0200 Subject: [PATCH] Fix add remove button for multifield attributes --- src/login/UserProfileFormFields.tsx | 32 +++++++++++++----------- src/tools/structuredCloneButFunctions.ts | 24 ++++++++++++++++++ 2 files changed, 41 insertions(+), 15 deletions(-) create mode 100644 src/tools/structuredCloneButFunctions.ts diff --git a/src/login/UserProfileFormFields.tsx b/src/login/UserProfileFormFields.tsx index 04654cf4..728dca3d 100644 --- a/src/login/UserProfileFormFields.tsx +++ b/src/login/UserProfileFormFields.tsx @@ -426,21 +426,23 @@ function AddRemoveButtonsMultiValuedAttribute(props: { return ( <> {hasRemove && ( - + <> + + {hasAdd ? <> |  : null} + )} {hasAdd && (