From 4d1a5e7279f2cac895d5b896d56776adffe183be Mon Sep 17 00:00:00 2001
From: axel7083 <42176370+axel7083@users.noreply.github.com>
Date: Mon, 15 Jan 2024 09:59:21 +0100
Subject: [PATCH] fix: displaying loading screen properly
---
packages/frontend/src/pages/Models.svelte | 44 ++++++++++++-----------
1 file changed, 23 insertions(+), 21 deletions(-)
diff --git a/packages/frontend/src/pages/Models.svelte b/packages/frontend/src/pages/Models.svelte
index 6ec1104fc..f7b9d5262 100644
--- a/packages/frontend/src/pages/Models.svelte
+++ b/packages/frontend/src/pages/Models.svelte
@@ -41,8 +41,8 @@ function filterModels(): void {
if(currentValue.state === 'success')
return previousValue;
- if(currentValue.labels) {
- previousValue.push(currentValue.labels["model-pulling"])
+ if(currentValue.labels !== undefined) {
+ previousValue.push(currentValue.labels["model-pulling"]);
}
return previousValue;
}, [] as string[]);
@@ -80,25 +80,27 @@ onDestroy(() => {