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 (umbraco#12713)
  • Loading branch information
ebouma committed Aug 22, 2022
1 parent 753cf35 commit 88aad85
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ function contentEditingHelper(fileManager, $q, $location, $routeParams, editorSt

formHelper.resetForm({ scope: args.scope, hasErrors: true });

args.scope.isNew = args.content.id !== 0 && args.scope.isNew;

self.handleSaveError({
showNotifications: args.showNotifications,
softRedirect: args.softRedirect,
Expand Down

0 comments on commit 88aad85

Please sign in to comment.