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> = ({
84
84
setLoading ( true ) ;
85
85
chunkEntitiesAPI ( userCredentials as UserCredentials , chunk_ids . map ( ( c ) => c . id ) . join ( ',' ) )
86
86
. then ( ( response ) => {
87
- console . log ( { response } ) ;
88
87
setInfoEntities ( response . data . data . nodes ) ;
89
88
setNodes ( response . data . data . nodes ) ;
90
89
setRelationships ( response . data . data . relationships ) ;
@@ -289,7 +288,10 @@ const ChatInfoModal: React.FC<chatInfoMessage> = ({
289
288
className = 'flex items-center mb-2 text-ellipsis whitespace-nowrap max-w-[100%)] overflow-hidden'
290
289
>
291
290
< 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
+ }
293
295
</ div >
294
296
</ li >
295
297
) )
Original file line number Diff line number Diff line change @@ -47,9 +47,7 @@ const Chatbot: React.FC<ChatbotProps> = (props) => {
47
47
} ) ;
48
48
let selectedFileNames : CustomFile [ ] = [ ] ;
49
49
selectedRows . forEach ( ( id ) => {
50
- console . log ( id ) ;
51
50
filesData . forEach ( ( f ) => {
52
- console . log ( f . id , id ) ;
53
51
if ( f . id === id ) {
54
52
selectedFileNames . push ( f ) ;
55
53
}
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
}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ interface ThemeWrapperProps {
11
11
}
12
12
const ThemeWrapper = ( { children } : ThemeWrapperProps ) => {
13
13
const prefersDarkMode = useMediaQuery ( '(prefers-color-scheme: dark)' ) ;
14
- //@ts -ignore
14
+ // @ts -ignore
15
15
const defaultMode : 'light' | 'dark' = localStorage . getItem ( 'mode' ) ;
16
16
const [ mode , setMode ] = useState < 'light' | 'dark' > ( prefersDarkMode ? 'dark' : defaultMode ?? 'light' ) ;
17
17
const [ usingPreferredMode , setUsingPreferredMode ] = useState < boolean > ( true ) ;
You can’t perform that action at this time.
0 commit comments