Final PR comment.
This commit is contained in:
parent
c5360e1dcb
commit
f64800f9f4
|
@ -25,7 +25,6 @@
|
|||
let tableDefinition
|
||||
let searchTerm
|
||||
let open
|
||||
let hasFetchedDefaultValue
|
||||
|
||||
$: type =
|
||||
datasourceType === "table" ? FieldTypes.LINK : FieldTypes.BB_REFERENCE
|
||||
|
@ -117,11 +116,10 @@
|
|||
if (allRowsFetched || !primaryDisplay) {
|
||||
return
|
||||
}
|
||||
if (defaultVal && !hasFetchedDefaultValue) {
|
||||
if (defaultVal && !optionsObj[defaultVal]) {
|
||||
await fetch.update({
|
||||
query: { equal: { _id: defaultVal } },
|
||||
})
|
||||
hasFetchedDefaultValue = true
|
||||
}
|
||||
await fetch.update({
|
||||
query: { string: { [primaryDisplay]: searchTerm } },
|
||||
|
|
Loading…
Reference in New Issue