Skip to content

Commit 9f1d432

Browse files
fix: Multimode metrics mode change state issue
fix: chunk list style issue
1 parent 8a0885c commit 9f1d432

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

frontend/src/components/ChatBot/ChatInfoModal.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ const ChatInfoModal: React.FC<chatInfoMessage> = ({
7878
const [, copy] = useCopyToClipboard();
7979
const [copiedText, setcopiedText] = useState<boolean>(false);
8080
const [showMetricsTable, setShowMetricsTable] = useState<boolean>(Boolean(metricDetails));
81+
const [showMultiModeMetrics, setShowMultiModeMetrics] = useState<boolean>(Boolean(multiModelMetrics.length))
8182
const [multiModeError, setMultiModeError] = useState<string>('');
8283

8384
const actions: CypherCodeBlockProps['actions'] = useMemo(
@@ -200,7 +201,7 @@ const ChatInfoModal: React.FC<chatInfoMessage> = ({
200201
}
201202
}
202203
} else {
203-
setShowMetricsTable(true);
204+
setShowMultiModeMetrics(true)
204205
toggleMetricsLoading();
205206
const contextarray = Object.values(activeChatmodes).map((r) => {
206207
return r.metric_contexts;
@@ -334,7 +335,7 @@ const ChatInfoModal: React.FC<chatInfoMessage> = ({
334335
</Typography>
335336
</Stack>
336337
</Stack>
337-
{showMetricsTable && activeChatmodes != null && Object.keys(activeChatmodes).length > 1 && (
338+
{showMultiModeMetrics && activeChatmodes != null && Object.keys(activeChatmodes).length > 1 && (
338339
<MultiModeMetrics
339340
error={multiModeError}
340341
metricsLoading={metricsLoading}

frontend/src/components/ChatBot/ChunkInfo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const ChunkInfo: FC<ChunkProps> = ({ loading, chunks, mode }) => {
4545
</Box>
4646
) : chunks?.length > 0 ? (
4747
<div className='p-4 h-80 overflow-auto'>
48-
<ul className='list-disc list-inside'>
48+
<ul className='list-inside list-none'>
4949
{chunks.map((chunk) => (
5050
<li key={chunk.id} className='mb-2'>
5151
{chunk?.page_number ? (

0 commit comments

Comments
 (0)