From cf13ac6767ef981cadce135eb4f1dec6a22f613c Mon Sep 17 00:00:00 2001 From: "C. Fuhrman" Date: Sun, 26 Jan 2025 16:56:49 -0500 Subject: [PATCH] =?UTF-8?q?refresh=20page=20apr=C3=A8s=20renommage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/pages/Teacher/Dashboard/Dashboard.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/pages/Teacher/Dashboard/Dashboard.tsx b/client/src/pages/Teacher/Dashboard/Dashboard.tsx index be9574d..0300da7 100644 --- a/client/src/pages/Teacher/Dashboard/Dashboard.tsx +++ b/client/src/pages/Teacher/Dashboard/Dashboard.tsx @@ -299,7 +299,8 @@ const Dashboard: React.FC = () => { await ApiService.renameFolder(selectedFolderId, newTitle); const userFolders = await ApiService.getUserFolders(); setFolders(userFolders as FolderType[]); - + // refresh the page + setSelectedFolderId(''); } } catch (error) { console.error('Error renaming folder:', error);