yangdx
commited on
Commit
·
a79fc59
1
Parent(s):
fe31bf5
Improve empty history message handling
Browse files
lightrag_webui/src/components/documents/PipelineStatusDialog.tsx
CHANGED
@@ -179,9 +179,11 @@ export default function PipelineStatusDialog({
|
|
179 |
onScroll={handleScroll}
|
180 |
className="font-mono text-sm rounded-md bg-zinc-800 text-zinc-100 p-3 overflow-y-auto min-h-[7.5em] max-h-[40vh]"
|
181 |
>
|
182 |
-
{status?.history_messages?.
|
183 |
-
|
184 |
-
|
|
|
|
|
185 |
</div>
|
186 |
</div>
|
187 |
</div>
|
|
|
179 |
onScroll={handleScroll}
|
180 |
className="font-mono text-sm rounded-md bg-zinc-800 text-zinc-100 p-3 overflow-y-auto min-h-[7.5em] max-h-[40vh]"
|
181 |
>
|
182 |
+
{status?.history_messages?.length ? (
|
183 |
+
status.history_messages.map((msg, idx) => (
|
184 |
+
<div key={idx}>{msg}</div>
|
185 |
+
))
|
186 |
+
) : '-'}
|
187 |
</div>
|
188 |
</div>
|
189 |
</div>
|