Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/ProjectGroupPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const loadGroups = async (reset = false) => {
}

let timeoutId: ReturnType<typeof setTimeout>
watch(searchText, (newVal, oldVal) => {
watch(searchText, () => {
if (!isOpen.value) return

clearTimeout(timeoutId)
Expand Down
10 changes: 5 additions & 5 deletions services/tdei.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
};

Expand Down Expand Up @@ -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();
Expand Down