mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-21 15:59:15 +00:00
UBERF-5561 (#4680)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
5fbcf9353b
commit
0c396723ed
@ -21,7 +21,7 @@
|
|||||||
import AttachmentList from './AttachmentList.svelte'
|
import AttachmentList from './AttachmentList.svelte'
|
||||||
|
|
||||||
export let value: Doc & { attachments?: number }
|
export let value: Doc & { attachments?: number }
|
||||||
export let attachments: Attachment[] | undefined = []
|
export let attachments: Attachment[] | undefined = undefined
|
||||||
|
|
||||||
const query = createQuery()
|
const query = createQuery()
|
||||||
const savedAttachmentsQuery = createQuery()
|
const savedAttachmentsQuery = createQuery()
|
||||||
@ -32,7 +32,7 @@
|
|||||||
$: updateQuery(value, attachments)
|
$: updateQuery(value, attachments)
|
||||||
|
|
||||||
function updateQuery (value: Doc & { attachments?: number }, attachments?: Attachment[]): void {
|
function updateQuery (value: Doc & { attachments?: number }, attachments?: Attachment[]): void {
|
||||||
if (attachments !== undefined) {
|
if (attachments !== undefined && attachments.length > 0) {
|
||||||
resAttachments = attachments
|
resAttachments = attachments
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user