Skip to content

Commit 0f85e35

Browse files
authored
fix: site icon not showing (#11094)
1 parent 17ee731 commit 0f85e35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/libs/helper.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ def output(self, key, obj):
3131
if obj is None:
3232
return None
3333

34-
from models.model import App, IconType
34+
from models.model import App, IconType, Site
3535

3636
if isinstance(obj, dict) and "app" in obj:
3737
obj = obj["app"]
3838

39-
if isinstance(obj, App) and obj.icon_type == IconType.IMAGE.value:
39+
if isinstance(obj, App | Site) and obj.icon_type == IconType.IMAGE.value:
4040
return file_helpers.get_signed_file_url(obj.icon)
4141
return None
4242

0 commit comments

Comments
 (0)