Remove some fluff

This commit is contained in:
Ola Hungerford
2025-02-27 07:48:19 -07:00
parent abd4877dae
commit 6ec82e21b1
2 changed files with 1 additions and 4 deletions

View File

@@ -27,9 +27,6 @@ const JsonEditor = ({
const formatJson = (json: string): string => { const formatJson = (json: string): string => {
try { try {
// Handle empty arrays and objects specifically
if (json.trim() === "[]") return "[]";
if (json.trim() === "{}") return "{}";
return JSON.stringify(JSON.parse(json), null, 2); return JSON.stringify(JSON.parse(json), null, 2);
} catch { } catch {
return json; return json;

2
package-lock.json generated
View File

@@ -35,8 +35,8 @@
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@modelcontextprotocol/sdk": "^1.4.1", "@modelcontextprotocol/sdk": "^1.4.1",
"@radix-ui/react-dialog": "^1.1.3",
"@radix-ui/react-checkbox": "^1.1.4", "@radix-ui/react-checkbox": "^1.1.4",
"@radix-ui/react-dialog": "^1.1.3",
"@radix-ui/react-icons": "^1.3.0", "@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-label": "^2.1.0", "@radix-ui/react-label": "^2.1.0",
"@radix-ui/react-popover": "^1.1.3", "@radix-ui/react-popover": "^1.1.3",