AykutSarac 3 rokov pred
rodič
commit
da5ae26949
1 zmenil súbory, kde vykonal 9 pridanie a 13 odobranie
  1. 9 13
      src/containers/JsonEditor/index.tsx

+ 9 - 13
src/containers/JsonEditor/index.tsx

@@ -84,17 +84,13 @@ export const JsonEditor: React.FC<{
     }
   };
 
-  if (typeof window !== "undefined") {
-    return (
-      <StyledJSONInput
-        placeholder={JSON.parse(initialJson as string)}
-        onChange={handleChange}
-        locale={locale}
-        height="100%"
-        width="auto"
-      />
-    );
-  }
-
-  return null;
+  return (
+    <StyledJSONInput
+      placeholder={JSON.parse(initialJson)}
+      onChange={handleChange}
+      locale={locale}
+      height="100%"
+      width="auto"
+    />
+  );
 };