mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-30 13:35:04 +02:00
UBERF-6267: Fix few platform troubles (#5142)
This commit is contained in:
@@ -179,16 +179,16 @@ export async function setClient (_client: MeasureClient): Promise<void> {
|
||||
void uiClient.doNotify(...tx)
|
||||
}
|
||||
if (needRefresh || globalQueries.length > 0) {
|
||||
await refreshClient()
|
||||
await refreshClient(true)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
export async function refreshClient (): Promise<void> {
|
||||
export async function refreshClient (clean: boolean): Promise<void> {
|
||||
if (!(liveQuery?.isClosed() ?? true)) {
|
||||
await liveQuery?.refreshConnect()
|
||||
await liveQuery?.refreshConnect(clean)
|
||||
for (const q of globalQueries) {
|
||||
q.refreshClient()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user