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
@@ -83,7 +83,7 @@
const client = getClient()
async function updateQuery (query: DocumentQuery<Task>, selectedDoneStates: Set<Ref<Status>>): Promise<void> {
function updateQuery (query: DocumentQuery<Task>, selectedDoneStates: Set<Ref<Status>>): void {
resConfig = updateConfig(config)
const result = client.getHierarchy().clone(query)
if (state) {
@@ -164,7 +164,14 @@
<TabList items={itemsDS} bind:selected={selectedDS} multiselect on:select={handleDoneSelect} />
</ScrollerBar>
{:else}
<StatesBar bind:state {space} gap={'none'} on:change={() => updateQuery(query, selectedDoneStates)} />
<StatesBar
bind:state
{space}
gap={'none'}
on:change={() => {
updateQuery(query, selectedDoneStates)
}}
/>
{/if}
</div>
<div class="statustableview-container">