TSK-1598 Fix tags dialog (#3510)

Signed-off-by: Alexander Onnikov <alexander.onnikov@xored.com>
This commit is contained in:
Alexander Onnikov 2023-07-19 19:45:05 +07:00 committed by GitHub
parent b38b252296
commit a78e4eb4f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -1692,7 +1692,7 @@ export function createModel (builder: Builder): void {
component: tags.component.ObjectsTagsEditorPopup,
element: 'top',
fillProps: {
_objects: 'objects'
_objects: 'value'
}
},
label: tracker.string.Labels,

View File

@ -18,7 +18,8 @@
import tags, { TagElement, TagReference } from '@hcengineering/tags'
import TagsPopup from './TagsPopup.svelte'
export let objects: Doc[]
export let value: Doc | Doc[]
$: objects = Array.isArray(value) ? value : [value]
let selected: Ref<TagElement>[] = []
let tagRefs: TagReference[] = []