From fa36521f95f56cb33df03e0c748e5e23b6987d5a Mon Sep 17 00:00:00 2001 From: "coderabbitai[bot]" <136622811+coderabbitai[bot]@users.noreply.github.com> Date: Tue, 28 Apr 2026 14:40:43 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20CodeRabbit=20Chat:=20Implement?= =?UTF-8?q?=20requested=20code=20changes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/ProjectGroupPicker.vue | 2 +- services/tdei.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/ProjectGroupPicker.vue b/components/ProjectGroupPicker.vue index 6196b13..7afacf1 100644 --- a/components/ProjectGroupPicker.vue +++ b/components/ProjectGroupPicker.vue @@ -92,7 +92,7 @@ const loadGroups = async (reset = false) => { } let timeoutId: ReturnType -watch(searchText, (newVal, oldVal) => { +watch(searchText, () => { if (!isOpen.value) return clearTimeout(timeoutId) diff --git a/services/tdei.ts b/services/tdei.ts index 29d2028..20e6f3a 100644 --- a/services/tdei.ts +++ b/services/tdei.ts @@ -247,7 +247,7 @@ export class TdeiClient extends BaseHttpClient implements ICancelableClient { && (filename.endsWith('.zip') || filename.endsWith('.xml')); const out = { - dataset: await entries.find(e => isDataset(e.filename))?.getData?.(blobWriter), + dataset: await entries.find(e => isDataset(e.filename))!.getData(blobWriter), metadata: entries.find(e => e.filename.endsWith('.json')) }; @@ -383,13 +383,13 @@ export class TdeiClient extends BaseHttpClient implements ICancelableClient { const jwt = getJwtBody(body.access_token); this.#auth.username = username; - this.#auth.subject = jwt.sub as unknown as string; - this.#auth.displayName = jwt.name as unknown as string; - this.#auth.email = jwt.email as unknown as string; + this.#auth.subject = jwt.sub as string; + this.#auth.displayName = jwt.name as string; + this.#auth.email = jwt.email as string; this.#auth.accessToken = body.access_token; this.#auth.refreshToken = body.refresh_token; this.#auth.expiresAt = expiresAsDate(body.expires_in); - this.#auth.refreshExpiresAt = expiresAsDate(body.refresh_expires_in); + this.#auth.store(); this.#setAuthHeader();