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 11:21:44 +03:00 committed by GitHub
parent 6097575d65
commit acd80be4df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()
})