gql-query-builder icon indicating copy to clipboard operation
gql-query-builder copied to clipboard

incorrect checks for an object-like value

Open thealjey opened this issue 5 years ago • 1 comments

throughout the code there are checks like;

const value = typeof variable === "object" ? variable.value : variable;

however, typeof will also result in "object" if value is null in which case the above code will simply fail

I'm considering making a PR in a few days to address this issue

thealjey avatar Sep 04 '20 22:09 thealjey

@thealjey thanks for identifying the issue. Looking forward to the PR.

atulmy avatar Sep 05 '20 07:09 atulmy