Skip to content

Commit

Permalink
Merge pull request #474 from whole-tale/icon_upon_image_change
Browse files Browse the repository at this point in the history
Update tale's icon field whenever imageId changes. Fixes #473
  • Loading branch information
Xarthisius authored May 3, 2021
2 parents 493aafe + 9f81128 commit 61d3185
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/rest/tale.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ def updateTale(self, taleObj, tale, params):
taleObj["config"] = {} # Has to be reset, after image change
if "config" in tale:
tale.pop("config")
tale["icon"] = image["icon"] # Has to be consistent...

for keyword in self._model.modifiableFields:
try:
Expand Down

0 comments on commit 61d3185

Please sign in to comment.