mirror of
https://github.com/Fabio286/antares.git
synced 2025-02-16 19:50:37 +01:00
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 () {
|
||||
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 () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user