diff --git a/src/lib/kit/utils/common.ts b/src/lib/kit/utils/common.ts index 94a6fd26..67f55d0b 100644 --- a/src/lib/kit/utils/common.ts +++ b/src/lib/kit/utils/common.ts @@ -5,6 +5,7 @@ import { NumberSpec, ObjectValue, Spec, + SpecTypes, StringSpec, isArraySpec, isObjectSpec, @@ -76,7 +77,10 @@ export const prepareSpec = ( } } - if (typeof _defaultValue === result.type) { + if ( + typeof _defaultValue === result.type || + (_.isArray(_defaultValue) && result.type === SpecTypes.Array) + ) { result.defaultValue = _defaultValue; } else { result.defaultValue = undefined;