File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,6 @@ const ChatInfoModal: React.FC<chatInfoMessage> = ({
8484 setLoading ( true ) ;
8585 chunkEntitiesAPI ( userCredentials as UserCredentials , chunk_ids . map ( ( c ) => c . id ) . join ( ',' ) )
8686 . then ( ( response ) => {
87- console . log ( { response } ) ;
8887 setInfoEntities ( response . data . data . nodes ) ;
8988 setNodes ( response . data . data . nodes ) ;
9089 setRelationships ( response . data . data . relationships ) ;
@@ -289,7 +288,10 @@ const ChatInfoModal: React.FC<chatInfoMessage> = ({
289288 className = 'flex items-center mb-2 text-ellipsis whitespace-nowrap max-w-[100%)] overflow-hidden'
290289 >
291290 < div style = { { backgroundColor : calcWordColor ( Object . keys ( label ) [ 0 ] ) } } className = 'legend mr-2' >
292- { ( label [ Object . keys ( label ) [ 0 ] ] [ 'id' ] as string ) ?? Object . keys ( label ) [ 0 ] }
291+ {
292+ //@ts -ignore
293+ label [ Object . keys ( label ) [ 0 ] ] . id ?? Object . keys ( label ) [ 0 ]
294+ }
293295 </ div >
294296 </ li >
295297 ) )
Original file line number Diff line number Diff line change @@ -47,9 +47,7 @@ const Chatbot: React.FC<ChatbotProps> = (props) => {
4747 } ) ;
4848 let selectedFileNames : CustomFile [ ] = [ ] ;
4949 selectedRows . forEach ( ( id ) => {
50- console . log ( id ) ;
5150 filesData . forEach ( ( f ) => {
52- console . log ( f . id , id ) ;
5351 if ( f . id === id ) {
5452 selectedFileNames . push ( f ) ;
5553 }
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}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ interface ThemeWrapperProps {
1111}
1212const ThemeWrapper = ( { children } : ThemeWrapperProps ) => {
1313 const prefersDarkMode = useMediaQuery ( '(prefers-color-scheme: dark)' ) ;
14- //@ts -ignore
14+ // @ts -ignore
1515 const defaultMode : 'light' | 'dark' = localStorage . getItem ( 'mode' ) ;
1616 const [ mode , setMode ] = useState < 'light' | 'dark' > ( prefersDarkMode ? 'dark' : defaultMode ?? 'light' ) ;
1717 const [ usingPreferredMode , setUsingPreferredMode ] = useState < boolean > ( true ) ;
You can’t perform that action at this time.
0 commit comments