From 3f90f514218b30cd68be39d13b6956a27a4f3650 Mon Sep 17 00:00:00 2001 From: Irozuku Date: Wed, 25 Feb 2026 10:17:57 -0300 Subject: [PATCH 1/3] fix: ensure total_rows and total_columns are defined before enriching datasets --- DashAI/front/src/hooks/datasets/useDatasets.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/DashAI/front/src/hooks/datasets/useDatasets.js b/DashAI/front/src/hooks/datasets/useDatasets.js index 32fcf092e..7069824ff 100644 --- a/DashAI/front/src/hooks/datasets/useDatasets.js +++ b/DashAI/front/src/hooks/datasets/useDatasets.js @@ -22,7 +22,11 @@ export function useDatasets({ t }) { newDatasets.map(async (dataset) => { const existing = existingDatasets.find((d) => d.id === dataset.id); - if (existing) { + if ( + existing && + existing.total_rows !== undefined && + existing.total_columns !== undefined + ) { return { ...dataset, total_rows: existing.total_rows, From fefa0b751d289c86444c1505492c09b01264e0c4 Mon Sep 17 00:00:00 2001 From: Irozuku Date: Wed, 25 Feb 2026 10:18:16 -0300 Subject: [PATCH 2/3] style: update hover background color logic in ItemBox component --- DashAI/front/src/components/threeSectionLayout/ItemBox.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DashAI/front/src/components/threeSectionLayout/ItemBox.jsx b/DashAI/front/src/components/threeSectionLayout/ItemBox.jsx index 30f2d4882..fcccd0b33 100644 --- a/DashAI/front/src/components/threeSectionLayout/ItemBox.jsx +++ b/DashAI/front/src/components/threeSectionLayout/ItemBox.jsx @@ -87,7 +87,7 @@ export default function ItemBox({ bgcolor: isSelected ? theme.palette.action.selected : "transparent", p: 0.5, "&:hover": { - backgroundColor: theme.palette.action.hover, + backgroundColor: isSelected ? theme.palette.action.selected : theme.palette.action.hover, }, }} onClick={isSelected || isEditing ? undefined : onClick} From 04e480b9abe318e9b5a00c8ac89b59c78e818e8c Mon Sep 17 00:00:00 2001 From: Irozuku Date: Wed, 25 Feb 2026 10:26:41 -0300 Subject: [PATCH 3/3] style: format hover background color logic in ItemBox component --- DashAI/front/src/components/threeSectionLayout/ItemBox.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/DashAI/front/src/components/threeSectionLayout/ItemBox.jsx b/DashAI/front/src/components/threeSectionLayout/ItemBox.jsx index fcccd0b33..49fa7c083 100644 --- a/DashAI/front/src/components/threeSectionLayout/ItemBox.jsx +++ b/DashAI/front/src/components/threeSectionLayout/ItemBox.jsx @@ -87,7 +87,9 @@ export default function ItemBox({ bgcolor: isSelected ? theme.palette.action.selected : "transparent", p: 0.5, "&:hover": { - backgroundColor: isSelected ? theme.palette.action.selected : theme.palette.action.hover, + backgroundColor: isSelected + ? theme.palette.action.selected + : theme.palette.action.hover, }, }} onClick={isSelected || isEditing ? undefined : onClick}