@routevn/creator-model 1.1.8 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/model.js +2 -5
package/package.json
CHANGED
package/src/model.js
CHANGED
|
@@ -1072,11 +1072,8 @@ const validateVideoItems = ({ items, path, errorFactory }) => {
|
|
|
1072
1072
|
};
|
|
1073
1073
|
|
|
1074
1074
|
const validateAnimationKeyframes = ({ keyframes, path, errorFactory }) => {
|
|
1075
|
-
if (!Array.isArray(keyframes)
|
|
1076
|
-
return invalidFromErrorFactory(
|
|
1077
|
-
errorFactory,
|
|
1078
|
-
`${path} must be a non-empty array`,
|
|
1079
|
-
);
|
|
1075
|
+
if (!Array.isArray(keyframes)) {
|
|
1076
|
+
return invalidFromErrorFactory(errorFactory, `${path} must be an array`);
|
|
1080
1077
|
}
|
|
1081
1078
|
|
|
1082
1079
|
for (const [index, keyframe] of keyframes.entries()) {
|