File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -160,10 +160,14 @@ const ChatInfoModal: React.FC<chatInfoMessage> = ({
160
160
</ Box >
161
161
</ Box >
162
162
< 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 > : < > </ > }
167
171
</ Tabs >
168
172
< Flex className = 'p-4' >
169
173
< 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> = ({
290
294
< div style = { { backgroundColor : calcWordColor ( Object . keys ( label ) [ 0 ] ) } } className = 'legend mr-2' >
291
295
{
292
296
//@ts -ignore
293
- label [ Object . keys ( label ) [ 0 ] ] . id ?? Object . keys ( label ) [ 0 ]
297
+ label [ Object . keys ( label ) [ 0 ] ] . id ?? Object . keys ( label ) [ 0 ]
294
298
}
295
299
</ div >
296
300
</ li >
Original file line number Diff line number Diff line change @@ -728,6 +728,6 @@ function IndeterminateCheckbox({
728
728
} , [ ref , indeterminate ] ) ;
729
729
730
730
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 } />
732
732
) ;
733
733
}
You can’t perform that action at this time.
0 commit comments