Skip to content

Commit 10ce687

Browse files
committed
Only use properties in the 'options' property of dynamicOptions as dynamic ones
1 parent 28af147 commit 10ce687

File tree

1 file changed

+4
-4
lines changed
  • src/vfjs-global-mixin/methods/vfjs-helpers

1 file changed

+4
-4
lines changed

src/vfjs-global-mixin/methods/vfjs-helpers/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,18 +254,18 @@ const vfjsHelpers = {
254254
}
255255

256256
if (Array.isArray(dynamicOptions)) {
257-
return dynamicOptions.reduce((properties, { schema, model, ...dynamicProperties }) => {
257+
return dynamicOptions.reduce((properties, { schema, model, options }) => {
258258
if (this.vfjsHelperSchemaHasErrors(schema, model)) {
259-
return merge(properties, dynamicProperties);
259+
return merge(properties, options);
260260
}
261261

262262
return properties;
263263
});
264264
}
265265

266-
const { schema, model, ...dynamicProperties } = dynamicOptions;
266+
const { schema, model, options } = dynamicOptions;
267267
if (this.vfjsHelperSchemaHasErrors(schema, model)) {
268-
return dynamicProperties;
268+
return options;
269269
}
270270

271271
return null;

0 commit comments

Comments
 (0)