Skip to content

Commit

Permalink
Fix: set array as latest call
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Jul 12, 2023
1 parent 32d1cbd commit ca54faf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/schema/Schema.vue
Original file line number Diff line number Diff line change
Expand Up @@ -718,8 +718,8 @@ export default {
.then((res) => {
if (!res) return;
let model = res.default_model[this.name];
if (typeof(model) === 'object') this.model = model;
else this.model = res.default_model;
if (Array.isArray(model)) this.model = res.default_model;
else this.model = model;
this.show = true;
})
.catch((err) => {
Expand Down

0 comments on commit ca54faf

Please sign in to comment.