TSK-1160 Баг Дублируется событие в Activity по поводу изменения Дескрипшен (#2978)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-04-13 23:44:27 +06:00 committed by GitHub
parent 1d7306d990
commit e96b6172e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -83,7 +83,7 @@
_class,
{ _id },
async (result) => {
if (saveTrigger !== undefined) {
if (saveTrigger !== undefined && lastId !== _id) {
clearTimeout(saveTrigger)
await save()
}
@ -101,6 +101,7 @@
let saved = false
async function save () {
clearTimeout(saveTrigger)
if (!issue || !canSave) {
return
}

View File

@ -39,7 +39,7 @@
const listProvider = new ListSelectionProvider((offset: 1 | -1 | 0, of?: Doc, dir?: SelectDirection) => {
if (dir === 'vertical') {
// Select next
list.select(offset, of)
list?.select(offset, of)
}
})
</script>