mirror of https://github.com/Fabio286/antares.git
fix: no foreign key select when cell value is NULL, closes #50
This commit is contained in:
parent
55932fe115
commit
9f5ec0276c
|
@ -51,7 +51,7 @@ export default {
|
||||||
}),
|
}),
|
||||||
isValidDefault () {
|
isValidDefault () {
|
||||||
if (!this.foreignList.length) return true;
|
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 () {
|
async created () {
|
||||||
|
|
Loading…
Reference in New Issue