fix(ui,richtext-*): path from context should always have precedence over path from props, even if it's an empty string (#6782)
This commit is contained in:
@@ -125,7 +125,7 @@ export const _ArrayField: React.FC<ArrayFieldProps> = (props) => {
|
||||
value,
|
||||
} = useField<number>({
|
||||
hasRows: true,
|
||||
path: pathFromContext || pathFromProps || name,
|
||||
path: pathFromContext ?? pathFromProps ?? name,
|
||||
validate: memoizedValidate,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user