Skip to content

Commit

Permalink
Fix: Infinite Editor creates each save action a new version when cont…
Browse files Browse the repository at this point in the history
…ent is invalid (#12713)

(cherry picked from commit 93a85a4)
  • Loading branch information
ebouma authored and nul800sebastiaan committed Mar 27, 2023
1 parent aab6539 commit 40285b7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ function contentEditingHelper(fileManager, $q, $location, $routeParams, editorSt
//update editor state to what is current
editorState.set(args.content);

//needs to be manually set for infinite editing mode
args.scope.isNew = args.content.id === 0 && args.scope.isNew;

return $q.reject(err);
});
}
Expand Down

0 comments on commit 40285b7

Please sign in to comment.