FIX: Removed some console.log lines

This commit is contained in:
Nicolás Hatcher
2025-11-11 06:48:01 +01:00
committed by Nicolás Hatcher Andrés
parent 18db1cf052
commit e48810d91b

View File

@@ -52,7 +52,6 @@ function WorkbookList({ setModel, onDelete }: WorkbookListProps) {
event: React.MouseEvent<HTMLButtonElement>, event: React.MouseEvent<HTMLButtonElement>,
uuid: string, uuid: string,
) => { ) => {
console.log("Menu open", uuid);
event.stopPropagation(); event.stopPropagation();
setSelectedWorkbookUuid(uuid); setSelectedWorkbookUuid(uuid);
setMenuAnchorEl(event.currentTarget); setMenuAnchorEl(event.currentTarget);
@@ -61,16 +60,9 @@ function WorkbookList({ setModel, onDelete }: WorkbookListProps) {
}; };
const handleMenuClose = () => { const handleMenuClose = () => {
console.log(
"Menu closing, selectedWorkbookUuid:",
selectedWorkbookUuid,
"intendedSelection:",
intendedSelection,
);
setMenuAnchorEl(null); setMenuAnchorEl(null);
// If we have an intended selection, make sure it's still selected // If we have an intended selection, make sure it's still selected
if (intendedSelection && intendedSelection !== selectedUuid) { if (intendedSelection && intendedSelection !== selectedUuid) {
console.log("Re-selecting intended workbook:", intendedSelection);
setModel(intendedSelection); setModel(intendedSelection);
} }
// Don't reset selectedWorkbookUuid here - we want to keep track of which workbook was selected // Don't reset selectedWorkbookUuid here - we want to keep track of which workbook was selected
@@ -78,7 +70,6 @@ function WorkbookList({ setModel, onDelete }: WorkbookListProps) {
}; };
const handleDeleteClick = (uuid: string) => { const handleDeleteClick = (uuid: string) => {
console.log("Delete workbook:", uuid);
setWorkbookToDelete(uuid); setWorkbookToDelete(uuid);
setIsDeleteDialogOpen(true); setIsDeleteDialogOpen(true);
setIntendedSelection(null); setIntendedSelection(null);