mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-12 20:57:45 +02:00
fix: label count in issue template (#7555)
Signed-off-by: Dakshesh Jain <dakshesh.jain14@gmail.com>
This commit is contained in:
@@ -67,9 +67,9 @@
|
||||
if (result.action === 'add') {
|
||||
void addRef(result.tag)
|
||||
} else if (result.action === 'remove') {
|
||||
const filtered = items.filter((it) => it.tag === result.tag._id)
|
||||
const filtered = items.filter((it) => (it.tag ? it.tag === result.tag._id : it._id === result.tag._id))
|
||||
if (filtered.length > 0) {
|
||||
void removeTag(filtered[0]._id)
|
||||
void removeTag(filtered[0].tag ?? filtered[0]._id)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -82,7 +82,7 @@
|
||||
)
|
||||
}
|
||||
|
||||
async function removeTag (id: Ref<TagReference>): Promise<void> {
|
||||
async function removeTag (id: Ref<TagReference> | Ref<TagElement>): Promise<void> {
|
||||
dispatch('delete', id)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user