Fix: Infinite Editor creates each save action a new version when content is invalid (#12713)

This commit is contained in:
Ealse Bouma
2022-08-22 10:32:55 +02:00
committed by Sebastiaan Janssen
parent 3ee9bfbc93
commit 93a85a46f3

View File

@@ -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);
});
}