From 4b12cda191915d3cd11cf34da8ed977e4f4e7080 Mon Sep 17 00:00:00 2001 From: minnakt Date: Tue, 28 Nov 2023 12:20:06 -0500 Subject: [PATCH] DEVPROD-789: Fix spacing bug in ArrayFieldTemplate --- .../ArrayFieldTemplates/index.tsx | 29 +++++++++---------- src/gql/generated/types.ts | 4 +++ 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/src/components/SpruceForm/FieldTemplates/ArrayFieldTemplates/index.tsx b/src/components/SpruceForm/FieldTemplates/ArrayFieldTemplates/index.tsx index b131a91381..c1fcdb31d5 100644 --- a/src/components/SpruceForm/FieldTemplates/ArrayFieldTemplates/index.tsx +++ b/src/components/SpruceForm/FieldTemplates/ArrayFieldTemplates/index.tsx @@ -199,23 +199,22 @@ export const ArrayFieldTemplate: React.FC = ({ hasChildren={!!items?.length} data-cy={arrayDataCy} > - {items.length === 0 ? ( + {items.length === 0 && placeholder && ( {placeholder} - ) : ( - items.map((p, i) => ( - - )) )} + {items.map((p, i) => ( + + ))} {buttonAtEnd && ( {addButton} diff --git a/src/gql/generated/types.ts b/src/gql/generated/types.ts index a832e8a1bc..a884f8bd7f 100644 --- a/src/gql/generated/types.ts +++ b/src/gql/generated/types.ts @@ -1692,6 +1692,7 @@ export type Project = { repotrackerError?: Maybe; restricted?: Maybe; spawnHostScriptPath: Scalars["String"]["output"]; + stepbackBisect?: Maybe; stepbackDisabled?: Maybe; taskAnnotationSettings: TaskAnnotationSettings; taskSync: TaskSyncOptions; @@ -1824,6 +1825,7 @@ export type ProjectInput = { repotrackerDisabled?: InputMaybe; restricted?: InputMaybe; spawnHostScriptPath?: InputMaybe; + stepbackBisect?: InputMaybe; stepbackDisabled?: InputMaybe; taskAnnotationSettings?: InputMaybe; taskSync?: InputMaybe; @@ -2144,6 +2146,7 @@ export type RepoRef = { repotrackerDisabled: Scalars["Boolean"]["output"]; restricted: Scalars["Boolean"]["output"]; spawnHostScriptPath: Scalars["String"]["output"]; + stepbackBisect?: Maybe; stepbackDisabled: Scalars["Boolean"]["output"]; taskAnnotationSettings: TaskAnnotationSettings; taskSync: RepoTaskSyncOptions; @@ -2186,6 +2189,7 @@ export type RepoRefInput = { repotrackerDisabled?: InputMaybe; restricted?: InputMaybe; spawnHostScriptPath?: InputMaybe; + stepbackBisect?: InputMaybe; stepbackDisabled?: InputMaybe; taskAnnotationSettings?: InputMaybe; taskSync?: InputMaybe;