mirror of
https://github.com/strapi/strapi.git
synced 2025-09-22 14:59:07 +00:00
explicitly return false instead of undefined
This commit is contained in:
parent
81e958bb4e
commit
5040305ba8
@ -28,6 +28,7 @@ const isOptionalAdminType = (diff: Diff) => {
|
||||
const name = (diff?.values[0] as Schema)?.info?.singularName;
|
||||
return (OPTIONAL_CONTENT_TYPES as ReadonlyArray<string | undefined>).includes(name);
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
const isIgnorableStrict = (diff: Diff) => isAttributeIgnorable(diff) || isOptionalAdminType(diff);
|
||||
|
Loading…
x
Reference in New Issue
Block a user