Skip to content

Commit a9638f7

Browse files
format fixes and tab rendering fix
1 parent 13a592c commit a9638f7

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

frontend/src/components/ChatBot/ChatInfoModal.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,14 @@ const ChatInfoModal: React.FC<chatInfoMessage> = ({
160160
</Box>
161161
</Box>
162162
<Tabs size='large' fill='underline' onChange={onChangeTabs} value={activeTab}>
163-
{mode != 'graph' && <Tabs.Tab tabId={3}>Sources used</Tabs.Tab>}
164-
{(mode === 'graph+vector' || mode === 'graph') && <Tabs.Tab tabId={4}>Top Entities used</Tabs.Tab>}
165-
{mode === 'graph' && cypher_query?.trim().length && <Tabs.Tab tabId={6}>Generated Cypher Query</Tabs.Tab>}
166-
{mode != 'graph' && <Tabs.Tab tabId={5}>Chunks</Tabs.Tab>}
163+
{mode != 'graph' ? <Tabs.Tab tabId={3}>Sources used</Tabs.Tab> : <></>}
164+
{mode === 'graph+vector' || mode === 'graph' ? <Tabs.Tab tabId={4}>Top Entities used</Tabs.Tab> : <></>}
165+
{mode === 'graph' && cypher_query?.trim().length ? (
166+
<Tabs.Tab tabId={6}>Generated Cypher Query</Tabs.Tab>
167+
) : (
168+
<></>
169+
)}
170+
{mode != 'graph' ? <Tabs.Tab tabId={5}>Chunks</Tabs.Tab> : <></>}
167171
</Tabs>
168172
<Flex className='p-4'>
169173
<Tabs.TabPanel className='n-flex n-flex-col n-gap-token-4 n-p-token-6' value={activeTab} tabId={3}>
@@ -290,7 +294,7 @@ const ChatInfoModal: React.FC<chatInfoMessage> = ({
290294
<div style={{ backgroundColor: calcWordColor(Object.keys(label)[0]) }} className='legend mr-2'>
291295
{
292296
//@ts-ignore
293-
label[Object.keys(label)[0]].id ?? Object.keys(label)[0]
297+
label[Object.keys(label)[0]].id ?? Object.keys(label)[0]
294298
}
295299
</div>
296300
</li>

frontend/src/components/FileTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,6 @@ function IndeterminateCheckbox({
728728
}, [ref, indeterminate]);
729729

730730
return (
731-
<Checkbox aria-label='row checkbox' type='checkbox' ref={ref} className={`${className } cursor-pointer`} {...rest} />
731+
<Checkbox aria-label='row checkbox' type='checkbox' ref={ref} className={`${className} cursor-pointer`} {...rest} />
732732
);
733733
}

0 commit comments

Comments
 (0)