Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
fix: correct indentation on codegen
Andrew Bastinaa4fedb71c43
diff --git a/packages/hoppscotch-app/helpers/new-codegen/index.ts b/packages/hoppscotch-app/helpers/new-codegen/index.tsindex 370210885..c9630c4aa 100644--- a/packages/hoppscotch-app/helpers/new-codegen/index.ts+++ b/packages/hoppscotch-app/helpers/new-codegen/index.ts@@ -204,7 +204,9 @@ export const generateCode = (// Returns a string if valid, false if notnew HTTPSnippet({...buildHarRequest(req),- }).convert(codegenInfo.lang, codegenInfo.mode)+ }).convert(codegenInfo.lang, codegenInfo.mode, {+ indent: " ",+ })),// Only allow string output to pass through, else none