Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

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.ts
index 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 not
new HTTPSnippet({
...buildHarRequest(req),
- }).convert(codegenInfo.lang, codegenInfo.mode)
+ }).convert(codegenInfo.lang, codegenInfo.mode, {
+ indent: " ",
+ })
),
// Only allow string output to pass through, else none