From 86a85ca53edf263e6fabbc2b2527eea45b47bdf4 Mon Sep 17 00:00:00 2001 From: andreashimin Date: Thu, 19 Dec 2024 21:25:55 +0800 Subject: [PATCH] fix(wren-ui): add isStreaming condition for alert info --- .../home/promptThread/TextBasedAnswer.tsx | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/wren-ui/src/components/pages/home/promptThread/TextBasedAnswer.tsx b/wren-ui/src/components/pages/home/promptThread/TextBasedAnswer.tsx index e86a2d7f2..1fb6dcbf9 100644 --- a/wren-ui/src/components/pages/home/promptThread/TextBasedAnswer.tsx +++ b/wren-ui/src/components/pages/home/promptThread/TextBasedAnswer.tsx @@ -191,15 +191,19 @@ export default function TextBasedAnswer( )} ) : ( - - Click View SQL to review the step-by-step query logic and - verify why the data is unavailable. - - } - type="info" - /> + <> + {!isStreaming && ( + + Click View SQL to review the step-by-step query logic + and verify why the data is unavailable. + + } + type="info" + /> + )} + )}