Final PR comment.

This commit is contained in:
mike12345567 2023-10-13 13:05:07 +01:00
parent c5360e1dcb
commit f64800f9f4
1 changed files with 1 additions and 3 deletions

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