Skip to content

Commit

Permalink
Edit and Add blogs hold different cache v3
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-Kartik2004 committed Nov 25, 2023
1 parent ac9fd0d commit f9109d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/components/Editor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ export default function Editor({

let storedValue = "<!-- Write your blog below -->";
if (typeof window !== "undefined") {
sessionStorage.getItem("addBlog") ? sessionStorage.getItem("addBlog") : "";
storedValue = sessionStorage.getItem("addBlog")
? sessionStorage.getItem("addBlog")
: "";
}

const [value, setValue] = React.useState(
Expand Down

0 comments on commit f9109d7

Please sign in to comment.