mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-31 23:46:12 +03: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'
|
||||
|
||||
export let value: Doc & { attachments?: number }
|
||||
export let attachments: Attachment[] | undefined = []
|
||||
export let attachments: Attachment[] | undefined = undefined
|
||||
|
||||
const query = createQuery()
|
||||
const savedAttachmentsQuery = createQuery()
|
||||
@ -32,7 +32,7 @@
|
||||
$: updateQuery(value, attachments)
|
||||
|
||||
function updateQuery (value: Doc & { attachments?: number }, attachments?: Attachment[]): void {
|
||||
if (attachments !== undefined) {
|
||||
if (attachments !== undefined && attachments.length > 0) {
|
||||
resAttachments = attachments
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user