UBERF-6330: Fix race conditions in UI (#5184)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2024-04-16 14:53:53 +07:00
committed by GitHub
parent d3fa4908ef
commit 0d1d1a8b8d
76 changed files with 862 additions and 595 deletions
@@ -1,7 +1,7 @@
<script lang="ts">
import { Person } from '@hcengineering/contact'
import { AssigneePopup, EmployeePresenter } from '@hcengineering/contact-resources'
import { Doc, Ref, SortingOrder } from '@hcengineering/core'
import { Doc, Ref, SortingOrder, generateId } from '@hcengineering/core'
import { MessageBox, createQuery, getClient } from '@hcengineering/presentation'
import { NodeViewContent, NodeViewProps, NodeViewWrapper } from '@hcengineering/text-editor'
import { CheckBox, getEventPositionElement, showPopup } from '@hcengineering/ui'
@@ -70,7 +70,7 @@
const title = node.textBetween(0, node.content.size, undefined, ' ')
const ops = client.apply('todo')
const ops = client.apply('todo' + generateId())
if (todo !== undefined) {
await ops.remove(todo)