1
0
Fork 0
mirror of synced 2024-07-04 14:01:27 +12:00

Final PR comment.

This commit is contained in:
mike12345567 2023-10-13 13:05:07 +01:00
parent c5360e1dcb
commit f64800f9f4

View file

@ -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 } },