diff --git a/src/server/playground/comp/Main.tsx b/src/server/playground/comp/Main.tsx index ed6fb104..e62d53c0 100644 --- a/src/server/playground/comp/Main.tsx +++ b/src/server/playground/comp/Main.tsx @@ -316,7 +316,6 @@ export const Main = ({ urlAddress }: { urlAddress: string }) => { const copyRequest = () => { const request: any = requestFunction(); - console.log(request); request.body.body = JSON.parse(request.body.body); navigator.clipboard.writeText(JSON.stringify(request)); }; diff --git a/src/server/playground/utils/createNestedObjectsFromKeys.ts b/src/server/playground/utils/createNestedObjectsFromKeys.ts index fa0cac8a..591cdbaa 100644 --- a/src/server/playground/utils/createNestedObjectsFromKeys.ts +++ b/src/server/playground/utils/createNestedObjectsFromKeys.ts @@ -5,7 +5,7 @@ export const createNestedObjectsFromKeys = ( // For each object path (property key) in the object for (const objectPath in obj) { - if (obj[objectPath] || obj[objectPath] === 0) { + if (obj[objectPath] || obj[objectPath] === 0 || obj[objectPath] === false) { // Split path into component parts const parts = objectPath.split(".");