Skip to content

Commit

Permalink
Fix: latest call for simple parameter types (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky authored Jul 20, 2023
1 parent c0ea985 commit d279ac4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/schema/Schema.vue
Original file line number Diff line number Diff line change
Expand Up @@ -719,8 +719,14 @@ export default {
.then((res) => {
if (!res) return;
let model = res.default_model[this.name];
if (Array.isArray(model)) this.model = res.default_model;
else this.model = model;
if (Array.isArray(model) ||
typeof model === 'string' ||
typeof model === 'number') {
this.model = res.default_model;
}
else {
this.model = model;
}
this.show = true;
})
.catch((err) => {
Expand Down

0 comments on commit d279ac4

Please sign in to comment.