Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hinthornw committed Jul 9, 2024
1 parent 160fa89 commit c8a7d93
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions js/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2324,8 +2324,13 @@ export class Client {
assertUuid(datasetId_);

const params = new URLSearchParams();
if (asOf !== undefined) {
params.append("as_of", asOf instanceof Date ? asOf.toISOString() : asOf);
const dataset_version = asOf
? typeof asOf === "string"
? asOf
: asOf?.toISOString()
: undefined;
if (dataset_version) {
params.append("as_of", dataset_version);
}

const response = await this._get<string[]>(
Expand Down

0 comments on commit c8a7d93

Please sign in to comment.