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> = ({
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 >
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments