Skip to content

Commit

Permalink
fix: workspace shouldn't be flattened (#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuann-Kinoko authored Dec 22, 2023
1 parent 18eb8c8 commit e9474dd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ public CommandResponse Handle(DetachContainerCommand command)
_bus.Invoke(
new FlattenSplitContainerCommand(detachedSiblings.ElementAt(0) as SplitContainer)
);

_bus.Invoke(new FlattenSplitContainerCommand(detachedParent as SplitContainer));
if (detachedParent is not Workspace)
_bus.Invoke(new FlattenSplitContainerCommand(detachedParent as SplitContainer));
}

return CommandResponse.Ok;
Expand Down

0 comments on commit e9474dd

Please sign in to comment.