Skip to content

Commit

Permalink
fixed, just removed the line for handleNewSession
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshudube97 committed Oct 7, 2024
1 parent 86341ec commit f405f64
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/components/DataAnalysis/LLMSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ export const LLMSummary = ({
);
if (response.success) {
successToast(`Feedback sent successfully`, [], globalContext);
handleNewSession(true);
}
} catch (err: any) {
errorToast(err.message, [], globalContext);
Expand Down
3 changes: 0 additions & 3 deletions src/components/DataAnalysis/OverwriteBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,12 @@ export const OverWriteDialog = ({
setIsBoxOpen(false);
};
useEffect(() => {
console.log(modalName, 'modalname');
if (oldSessionName && modalName === MODALS.OVERWRITE) {
console.log(oldSessionName, 'oldsessino');
reset({
sessionName: oldSessionName,
});
}
}, [oldSessionName, modalName]);
console.log();
const ModalData: any = {
SAVE: {
mainheading: 'Save as',
Expand Down

0 comments on commit f405f64

Please sign in to comment.