From e3609051e72037a2c5292ff92dc725cc0d226219 Mon Sep 17 00:00:00 2001 From: John Obelenus Date: Fri, 7 Jun 2024 13:27:07 -0400 Subject: [PATCH] Fix: check to_delete for component change status --- lib/dal/src/diagram.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/dal/src/diagram.rs b/lib/dal/src/diagram.rs index fcece63182..aaefbaeb2a 100644 --- a/lib/dal/src/diagram.rs +++ b/lib/dal/src/diagram.rs @@ -397,6 +397,8 @@ impl Diagram { for component in &components { let component_change_status = if new_component_ids.contains(&component.id()) { ChangeStatus::Added + } else if component.to_delete() { + ChangeStatus::Deleted } else { // TODO: Eventually, we'll want to also handle detecting ChangeStatus::Modified ChangeStatus::Unmodified