Compare commits

..

3 Commits

Author SHA1 Message Date
Andrew Bastin
de9b49e408 fix: make workspaceSelectorFlagEnabled into a computed property 2024-05-10 16:31:33 +05:30
nivedin
7a90e2b252 chore: add platform def in common 2024-05-10 16:31:33 +05:30
nivedin
996e96c26c chore: tweak header, selector UI for A/B testing 2024-05-10 16:31:33 +05:30

View File

@@ -89,7 +89,6 @@ import { readFileAsText } from "~/helpers/functional/files"
import xmlFormat from "xml-formatter"
import { useNestedSetting } from "~/composables/settings"
import { toggleNestedSetting } from "~/newstore/settings"
import * as LJSON from "lossless-json"
type PossibleContentTypes = Exclude<
ValidContentTypes,
@@ -188,8 +187,8 @@ const prettifyRequestBody = () => {
let prettifyBody = ""
try {
if (body.value.contentType.endsWith("json")) {
const jsonObj = LJSON.parse(rawParamsBody.value as string)
prettifyBody = LJSON.stringify(jsonObj, undefined, 2) as string
const jsonObj = JSON.parse(rawParamsBody.value as string)
prettifyBody = JSON.stringify(jsonObj, null, 2)
} else if (body.value.contentType === "application/xml") {
prettifyBody = prettifyXML(rawParamsBody.value as string)
}