Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! Clean up viewer: add eslint, fix linting errors, remove unused…
Browse files Browse the repository at this point in the history
… imports
myieye committed Oct 18, 2024
1 parent cfcf9d3 commit d5d0314
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -70,14 +70,14 @@ export class LfClassicLexboxApi implements LexboxApiClient {
const asc = options.order.ascending ?? true;
const params = new URLSearchParams({
SortField: options.order.field,
SortWritingSystem: options.order.writingSystem,
SortWritingSystem: options.order.writingSystem as string,
Ascending: asc ? 'true' : 'false',
Count: options.count.toString(),
Offset: options.offset.toString()
});
if (options.exemplar) {
params.set('ExemplarValue', options.exemplar.value);
params.set('ExemplarWritingSystem', options.exemplar.writingSystem);
params.set('ExemplarWritingSystem', options.exemplar.writingSystem as string);
}
/* eslint-enable @typescript-eslint/no-unsafe-assignment */
return '?' + params.toString();

0 comments on commit d5d0314

Please sign in to comment.