fix: no foreign key select when cell value is NULL, closes #50

This commit is contained in:
Fabio Di Stasio 2021-04-08 18:02:16 +02:00
parent 55932fe115
commit 9f5ec0276c
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ export default {
}),
isValidDefault () {
if (!this.foreignList.length) return true;
return this.foreignList.some(foreign => foreign.foreign_column.toString() === this.value.toString());
return this.value === null || this.foreignList.some(foreign => foreign.foreign_column.toString() === this.value.toString());
}
},
async created () {