fix: make field property of FieldLabel optional and partial (#8409)
Fixes https://github.com/payloadcms/payload/issues/8366
This commit is contained in:
@@ -13,9 +13,9 @@ export type GenericLabelProps = {
|
||||
}
|
||||
|
||||
export type FieldLabelClientProps<
|
||||
TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,
|
||||
TFieldClient extends Partial<ClientFieldWithOptionalType> = Partial<ClientFieldWithOptionalType>,
|
||||
> = {
|
||||
field: TFieldClient
|
||||
field?: TFieldClient
|
||||
} & GenericLabelProps
|
||||
|
||||
export type FieldLabelServerProps<
|
||||
|
||||
Reference in New Issue
Block a user