Skip to content

Commit c4ef3be

Browse files
authored
Disable sidebar-triggering buttons during stream (#2548)
1 parent 6c658cd commit c4ef3be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/frontend/src/components/Answer/Answer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ export const Answer = ({
8080
title={t("tooltips.showThoughtProcess")}
8181
ariaLabel={t("tooltips.showThoughtProcess")}
8282
onClick={() => onThoughtProcessClicked()}
83-
disabled={!answer.context.thoughts?.length}
83+
disabled={!answer.context.thoughts?.length || isStreaming}
8484
/>
8585
<IconButton
8686
style={{ color: "black" }}
8787
iconProps={{ iconName: "ClipboardList" }}
8888
title={t("tooltips.showSupportingContent")}
8989
ariaLabel={t("tooltips.showSupportingContent")}
9090
onClick={() => onSupportingContentClicked()}
91-
disabled={!answer.context.data_points}
91+
disabled={!answer.context.data_points || isStreaming}
9292
/>
9393
{showSpeechOutputAzure && (
9494
<SpeechOutputAzure answer={sanitizedAnswerHtml} index={index} speechConfig={speechConfig} isStreaming={isStreaming} />

0 commit comments

Comments
 (0)