diff --git a/gitbutler-app/src/virtual_branches/base.rs b/gitbutler-app/src/virtual_branches/base.rs
index 40f262e5f..d7244c73b 100644
--- a/gitbutler-app/src/virtual_branches/base.rs
+++ b/gitbutler-app/src/virtual_branches/base.rs
@@ -315,50 +315,61 @@ pub fn update_base_branch(
branch.head, branch.id
))?;
+ let result_integrated_detected =
+ |mut branch: branch::Branch| -> Result