Skip to content

Commit

Permalink
fix: fixes bug when deleting edge module
Browse files Browse the repository at this point in the history
  • Loading branch information
AssisrMatheus committed Mar 9, 2022
1 parent e573d02 commit 4469d35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Providers/PlannerProvider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ export const PlannerProvider: React.FC<PlannerProviderProps> = ({ 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 {
Expand Down

0 comments on commit 4469d35

Please sign in to comment.