diff --git a/core/http/views/chat.html b/core/http/views/chat.html
index dd917612a..7dce5ba66 100644
--- a/core/http/views/chat.html
+++ b/core/http/views/chat.html
@@ -419,8 +419,7 @@ SOFTWARE.
{{ if $model }}
- {{ $galleryConfig:= index $allGalleryConfigs $model}}
- {{ if $galleryConfig }}
+
{{ $modelConfig := "" }}
{{ range .ModelsConfig }}
{{ if eq .Name $model }}
@@ -449,7 +448,6 @@ SOFTWARE.
{{ end }}
{{ end }}
- {{ end }}