Spaces:
Running
Running
fix retry button showing while loading (#894)
Browse files
src/lib/components/chat/ChatWindow.svelte
CHANGED
@@ -88,7 +88,8 @@
|
|
88 |
$: lastMessage = browser && (messages.find((m) => m.id == $convTreeStore.leaf) as Message);
|
89 |
$: lastIsError =
|
90 |
lastMessage &&
|
91 |
-
|
|
|
92 |
lastMessage.updates?.findIndex((u) => u.type === "status" && u.status === "error") !== -1);
|
93 |
|
94 |
$: sources = files.map((file) => file2base64(file));
|
|
|
88 |
$: lastMessage = browser && (messages.find((m) => m.id == $convTreeStore.leaf) as Message);
|
89 |
$: lastIsError =
|
90 |
lastMessage &&
|
91 |
+
!loading &&
|
92 |
+
(lastMessage.from === "user" ||
|
93 |
lastMessage.updates?.findIndex((u) => u.type === "status" && u.status === "error") !== -1);
|
94 |
|
95 |
$: sources = files.map((file) => file2base64(file));
|