Skip to content

Commit f557b3e

Browse files
committed
fix issue with using false in search-params
1 parent f7b29ef commit f557b3e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@omer-x/next-openapi-interface-generator",
3-
"version": "0.7.0",
3+
"version": "0.7.1",
44
"description": "OpenAPI interface generator for Next.js",
55
"keywords": [
66
"next",

src/templates/interface.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function createURL(endPoint) {
55
return new URL(endPoint, process.env.{{envName}});
66
}
77
function appendSearchParam(params, key, value) {
8-
if (!value) return;
8+
if (value === undefined) return;
99
if (Array.isArray(value)) {
1010
for (const item of value) {
1111
params.append(key, item);

0 commit comments

Comments
 (0)