Skip to content

Commit 13a592c

Browse files
removed dev console logs
1 parent 4d58ece commit 13a592c

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

frontend/src/components/ChatBot/ChatInfoModal.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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
))

frontend/src/components/ChatBot/Chatbot.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

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
}

frontend/src/context/ThemeWrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interface ThemeWrapperProps {
1111
}
1212
const 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);

0 commit comments

Comments
 (0)