From 9f8112888cd931c6b3b657c280aed5a83f48a34a Mon Sep 17 00:00:00 2001 From: "Kacper Kowalik (Xarthisius)" Date: Fri, 30 Apr 2021 15:16:29 -0500 Subject: [PATCH] Update tale's icon field whenever imageId changes. Fixes #473 --- server/rest/tale.py | 1 + 1 file changed, 1 insertion(+) diff --git a/server/rest/tale.py b/server/rest/tale.py index 429b1275..d0c55a68 100644 --- a/server/rest/tale.py +++ b/server/rest/tale.py @@ -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: