diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index d1beafe..52de704 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,9 +4,8 @@
-
-
-
+
+
@@ -263,14 +262,6 @@
-
-
- 1719588854025
-
-
-
- 1719588854025
-
1719589144843
@@ -655,7 +646,15 @@
1740661540908
-
+
+
+ 1740661744828
+
+
+
+ 1740661744828
+
+
@@ -714,7 +713,6 @@
-
@@ -739,7 +737,8 @@
-
+
+
diff --git a/src/pages/tools/json/prettify/index.tsx b/src/pages/tools/json/prettify/index.tsx
index 9f22c15..77dab89 100644
--- a/src/pages/tools/json/prettify/index.tsx
+++ b/src/pages/tools/json/prettify/index.tsx
@@ -122,7 +122,7 @@ export default function PrettifyJson({ title }: ToolComponentProps) {
const formRef = useRef>(null);
const compute = (optionsValues: InitialValuesType, input: any) => {
const { indentationType, spacesCount } = optionsValues;
- setResult(beautifyJson(input, indentationType, spacesCount));
+ if (input) setResult(beautifyJson(input, indentationType, spacesCount));
};
const getGroups: GetGroupsType = ({