web: fix saving for CodeMirror not returning an object

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-03-30 18:20:48 +02:00
parent 58a7d67922
commit 9c65fd814b
4 changed files with 36 additions and 12 deletions

View File

@ -116,9 +116,7 @@ class PropertyMappingViewSet(
if not users.exists():
raise PermissionDenied()
response_data = {
"successful": True
}
response_data = {"successful": True}
try:
result = mapping.evaluate(
users.first(),