Skip to content

Commit

Permalink
Fix Search term encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
danielailie committed Sep 18, 2023
1 parent 185cf02 commit 4e84309
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/assets/assets-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class AssetsQuery {
}

addSearchTerm(searchTerm: string): this {
return this.addParamToQuery('search', encodeURIComponent(searchTerm));
return this.addParamToQuery('search', searchTerm ? encodeURIComponent(searchTerm) : null);
}

addPageSize(from: number, size: number): this {
Expand Down

0 comments on commit 4e84309

Please sign in to comment.