Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

clear storage on clear fired

Aykut Saraç9802e888383c
diff --git a/src/components/Sidebar/index.tsx b/src/components/Sidebar/index.tsx
index 2d9ee36b..70401df0 100644
--- a/src/components/Sidebar/index.tsx
+++ b/src/components/Sidebar/index.tsx
@@ -142,7 +142,14 @@ export const Sidebar: React.FC<{
</a>
</Link>
</StyledElement>
- <StyledElement as="a" onClick={() => setJson("[]")} title="Clear JSON">
+ <StyledElement
+ as="a"
+ onClick={() => {
+ setJson("[]");
+ localStorage.removeItem("json");
+ }}
+ title="Clear JSON"
+ >
<AiOutlineClear />
</StyledElement>
<StyledElement