Skip to content

Commit

Permalink
better null check
Browse files Browse the repository at this point in the history
  • Loading branch information
eanders-ms committed Oct 17, 2023
1 parent 22ee5a1 commit 8a67f09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kiosk/src/Utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function nodeListToArray<U extends Node>(list: NodeListOf<U>): U[] {
// Copied from pxt.Utils, modified to skip undefined values.
export function stringifyQueryString(url: string, qs: any) {
for (let k of Object.keys(qs)) {
if (qs[k]) {
if (qs[k] != null) {
if (url.indexOf("?") >= 0) {
url += "&";
} else {
Expand Down

0 comments on commit 8a67f09

Please sign in to comment.