Fix: Infinite Editor creates each save action a new version when content is invalid (#12713)
This commit is contained in:
committed by
Sebastiaan Janssen
parent
3ee9bfbc93
commit
93a85a46f3
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user