@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/model.js +2 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routevn/creator-model",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "MIT",
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) || keyframes.length === 0) {
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()) {