From 73dfdc64d5074805a2e2f4169bd0083fa47f96e8 Mon Sep 17 00:00:00 2001 From: pythongosssss <125205205+pythongosssss@users.noreply.github.com> Date: Sun, 14 Jul 2024 12:55:21 +0100 Subject: [PATCH] Dont show if no tags --- web/js/modelInfo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/js/modelInfo.js b/web/js/modelInfo.js index 0e7793e..71d9781 100644 --- a/web/js/modelInfo.js +++ b/web/js/modelInfo.js @@ -80,7 +80,7 @@ export class LoraInfoDialog extends ModelInfoDialog { addTags() { let tags = this.getTagFrequency(); if(!tags?.length) { - tags = (this.metadata["modelspec.tags"] ?? "").split(",").map(t => [t.trim(), 1]); + tags = this.metadata["modelspec.tags"]?.split(",").map(t => [t.trim(), 1]); } let hasMore; if (tags?.length) {