mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-30 04:05:39 +00:00
Fix draft comment stuck (#3072)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
b259173407
commit
1ce134c292
@ -79,6 +79,9 @@
|
||||
async function onMessage (event: CustomEvent) {
|
||||
loading = true
|
||||
const { message, attachments } = event.detail
|
||||
try {
|
||||
draftController.remove()
|
||||
commentInputBox.removeDraft(false)
|
||||
await client.addCollection<Doc, Comment>(
|
||||
_class,
|
||||
object.space,
|
||||
@ -95,10 +98,12 @@
|
||||
// Remove draft from Local Storage
|
||||
_id = generateId()
|
||||
comment = getDefault()
|
||||
draftController.remove()
|
||||
commentInputBox.removeDraft(false)
|
||||
} catch (err) {
|
||||
console.error(err)
|
||||
} finally {
|
||||
loading = false
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<AttachmentRefInput
|
||||
|
Loading…
Reference in New Issue
Block a user