mirror of
https://github.com/strapi/strapi.git
synced 2025-09-27 17:29:14 +00:00
Use isPlainObject from lodash instead
This commit is contained in:
parent
0f29e9367a
commit
4465cb1ef8
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const { has, isObject } = require('lodash/fp');
|
const { has, isPlainObject } = require('lodash/fp');
|
||||||
|
|
||||||
const ALLOWED_TYPES = [
|
const ALLOWED_TYPES = [
|
||||||
'biginteger',
|
'biginteger',
|
||||||
@ -59,8 +59,7 @@ const customFieldsRegistry = (strapi) => {
|
|||||||
// Validate inputSize when provided
|
// Validate inputSize when provided
|
||||||
if (inputSize) {
|
if (inputSize) {
|
||||||
if (
|
if (
|
||||||
!isObject(inputSize) ||
|
!isPlainObject(inputSize) ||
|
||||||
Array.isArray(inputSize) ||
|
|
||||||
!has('default', inputSize) ||
|
!has('default', inputSize) ||
|
||||||
!has('isResizable', inputSize)
|
!has('isResizable', inputSize)
|
||||||
) {
|
) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user