From 4469d35af3174bafe7ea3cc7a3be624190637b09 Mon Sep 17 00:00:00 2001 From: AssisrMatheus Date: Wed, 9 Mar 2022 15:13:22 -0300 Subject: [PATCH] fix: fixes bug when deleting edge module --- src/components/Providers/PlannerProvider/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Providers/PlannerProvider/index.tsx b/src/components/Providers/PlannerProvider/index.tsx index cac374f..2b52dff 100644 --- a/src/components/Providers/PlannerProvider/index.tsx +++ b/src/components/Providers/PlannerProvider/index.tsx @@ -714,7 +714,7 @@ export const PlannerProvider: React.FC = ({ children, proj setProjectModule((currProjectModule) => { // Only deselect if current project module is the same that it's deleting - if (projectModule.id === currProjectModule?.id) { + if (!projectModule.module.isEdge && projectModule.id === currProjectModule?.id) { setState('Deleted'); return undefined; } else {