Skip to content

Commit

Permalink
only reset if postid changes
Browse files Browse the repository at this point in the history
  • Loading branch information
GraemeFulton committed Aug 24, 2024
1 parent 70e8b31 commit 2da8687
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tiptypr",
"version": "0.0.90",
"version": "0.0.91",
"description": "Prototypr Editor",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/Editor/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const Editor = ({

useEffect(() => {
if (editor && shouldUpdateContent) {
// setShouldUpdateContent(false); // Reset the flag after updating content
setShouldUpdateContent(false); // Reset the flag after updating content
setTimeout(() => {
if (initialContent) {
if (editor.getHTML() !== initialContent) {
Expand Down

0 comments on commit 2da8687

Please sign in to comment.