mirror of
https://github.com/strapi/strapi.git
synced 2025-12-28 07:33:17 +00:00
Fix input uid
Signed-off-by: soupette <cyril@strapi.io>
This commit is contained in:
parent
434831f855
commit
951a0efd93
@ -123,7 +123,8 @@ const InputUID = ({
|
||||
if (
|
||||
debouncedValue &&
|
||||
debouncedValue.trim().match(UID_REGEX) &&
|
||||
debouncedValue !== initialValue
|
||||
debouncedValue !== initialValue &&
|
||||
!value
|
||||
) {
|
||||
checkAvailability();
|
||||
}
|
||||
@ -154,7 +155,8 @@ const InputUID = ({
|
||||
!isCustomized &&
|
||||
isCreation &&
|
||||
debouncedTargetFieldValue &&
|
||||
modifiedData[attribute.targetField]
|
||||
modifiedData[attribute.targetField] &&
|
||||
!value
|
||||
) {
|
||||
generateUid.current(true);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user