Skip to content

Commit 87360f2

Browse files
authored
fix: make field property of FieldLabel optional and partial (#8409)
Fixes #8366
1 parent 8fadc33 commit 87360f2

File tree

1 file changed

+2
-2
lines changed
  • packages/payload/src/admin/forms

1 file changed

+2
-2
lines changed

packages/payload/src/admin/forms/Label.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ export type GenericLabelProps = {
1313
}
1414

1515
export type FieldLabelClientProps<
16-
TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,
16+
TFieldClient extends Partial<ClientFieldWithOptionalType> = Partial<ClientFieldWithOptionalType>,
1717
> = {
18-
field: TFieldClient
18+
field?: TFieldClient
1919
} & GenericLabelProps
2020

2121
export type FieldLabelServerProps<

0 commit comments

Comments
 (0)