Skip to content

Commit

Permalink
fix(utils/parseExecute): only set undefined parameters to null
Browse files Browse the repository at this point in the history
Falsey values (e.g. empty string) should not be set as null.
  • Loading branch information
thelindat committed Jul 6, 2023
1 parent 8a340d6 commit 0caaec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/parseExecute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const parseExecute = (placeholders: number, parameters: CFXParameters) =>
} else arr[index] = parameters[index];

for (let i = 0; i < placeholders; i++) {
if (!arr[index][i]) arr[index][i] = null;
if (arr[index][i] === undefined) arr[index][i] = null;
}
});

Expand Down

0 comments on commit 0caaec4

Please sign in to comment.