From db79faa3cdc84f286cc26889afed5c4710f9f746 Mon Sep 17 00:00:00 2001 From: Alexander Onnikov Date: Sun, 5 Oct 2025 22:37:54 +0700 Subject: [PATCH] qifx: address sentry issues Signed-off-by: Alexander Onnikov --- packages/ui/src/tooltips.ts | 2 +- plugins/drive-resources/src/components/EditFile.svelte | 4 ++-- plugins/workbench-resources/src/connect.ts | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/ui/src/tooltips.ts b/packages/ui/src/tooltips.ts index dab9994a95f..dcfd364eccc 100644 --- a/packages/ui/src/tooltips.ts +++ b/packages/ui/src/tooltips.ts @@ -28,7 +28,7 @@ export const tooltipstore = derived(modalStore, (modals) => { let toHandler: any export function tooltip (node: HTMLElement, options?: LabelAndProps): any { - if (options?.label === undefined && options?.component === undefined) { + if (options === undefined || (options.label === undefined && options.component === undefined)) { // No tooltip // TODO: Fix reactive options update in this case return {} diff --git a/plugins/drive-resources/src/components/EditFile.svelte b/plugins/drive-resources/src/components/EditFile.svelte index 39c362fa971..ca352ec41c6 100644 --- a/plugins/drive-resources/src/components/EditFile.svelte +++ b/plugins/drive-resources/src/components/EditFile.svelte @@ -32,8 +32,8 @@ $: query.query(drive.class.FileVersion, { _id: object.file }, (res) => { ;[version] = res - blob = version.file - contentType = version.type + blob = version?.file + contentType = version?.type }) onMount(() => { diff --git a/plugins/workbench-resources/src/connect.ts b/plugins/workbench-resources/src/connect.ts index 0c21162f02b..a24b39bd70a 100644 --- a/plugins/workbench-resources/src/connect.ts +++ b/plugins/workbench-resources/src/connect.ts @@ -331,10 +331,11 @@ export async function connect (title: string): Promise { void (async () => { if (_client !== undefined) { + const client = _client const newVersion = await ctx.with( 'find-version', {}, - async () => await newClient.findOne(core.class.Version, {}) + async () => await client.findOne(core.class.Version, {}) ) console.log('Reconnect Model version', newVersion)