Skip to content

Commit 1ac09e8

Browse files
committed
[sc-12720] resolve CodeRabbit comment: better null check for settingToQueryParam
1 parent 98daffc commit 1ac09e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/apifetch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export type ExecuteApiFetch = (
8989
*/
9090
/* eslint-disable @typescript-eslint/no-explicit-any */
9191
const settingToQueryParam = function (setting: any, key: string): string {
92-
if (setting || setting === false) {
92+
if (setting !== null && setting !== undefined && setting !== '') {
9393
return '&' + key + '=' + setting;
9494
}
9595
return '';

0 commit comments

Comments
 (0)