From acd80be4df34c9aa39c2c4b5ae9ec511db0ab85d Mon Sep 17 00:00:00 2001 From: Sergey Voytsehovich Date: Fri, 5 Jan 2024 11:21:44 +0300 Subject: [PATCH] Uberf 4373 default contact department (#4303) * fix random value on undefined field value Signed-off-by: Sergey Voytsehovich * formatting Signed-off-by: Sergey Voytsehovich * removed presenter selection on undef Signed-off-by: Sergey Voytsehovich * formatting Signed-off-by: Sergey Voytsehovich --------- Signed-off-by: Sergey Voytsehovich --- plugins/view-resources/src/components/ObjectPresenter.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/view-resources/src/components/ObjectPresenter.svelte b/plugins/view-resources/src/components/ObjectPresenter.svelte index 9dfa36be34..89fdb4bf25 100644 --- a/plugins/view-resources/src/components/ObjectPresenter.svelte +++ b/plugins/view-resources/src/components/ObjectPresenter.svelte @@ -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() })