Skip to content
This repository was archived by the owner on Jun 2, 2026. It is now read-only.

Fix setting null value in query params with style "form"#478

Open
adascal wants to merge 1 commit into
IBM:masterfrom
adascal:fix/setting-null-param-in-form-style
Open

Fix setting null value in query params with style "form"#478
adascal wants to merge 1 commit into
IBM:masterfrom
adascal:fix/setting-null-param-in-form-style

Conversation

@adascal

@adascal adascal commented Nov 14, 2022

Copy link
Copy Markdown

Because in js typeof null === 'object' we need additional check, otherwise Object.entries(args[saneParamName]) will fail with:

TypeError: Cannot convert undefined or null to object

Signed-off-by: Alexandr Dascal <a.dascal@semrush.com>
@adascal adascal force-pushed the fix/setting-null-param-in-form-style branch from 654117d to bd9d2fe Compare November 14, 2022 20:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant