Uberf 4373 default contact department (#4303)

* fix random value on undefined field value

Signed-off-by: Sergey Voytsehovich <syargreg@gmail.com>

* formatting

Signed-off-by: Sergey Voytsehovich <syargreg@gmail.com>

* removed presenter selection on undef

Signed-off-by: Sergey Voytsehovich <syargreg@gmail.com>

* formatting

Signed-off-by: Sergey Voytsehovich <syargreg@gmail.com>

---------

Signed-off-by: Sergey Voytsehovich <syargreg@gmail.com>
This commit is contained in:
Sergey Voytsehovich
2024-01-05 15:21:44 +07:00
committed by GitHub
parent 6097575d65
commit acd80be4df
@@ -37,7 +37,7 @@
const docQuery = createQuery()
let doc: Doc | undefined
$: if (value === undefined && _class != null) {
$: if (value === undefined && _class != null && objectId != null) {
docQuery.query(_class, { _id: objectId }, (r) => {
doc = r.shift()
})