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