Replace a debugging visibility check with the real condition. (#4982)

This commit is contained in:
Doug
2026-01-21 17:16:23 +00:00
committed by GitHub
parent 6e2ff7ae56
commit 43770ab480
3 changed files with 7 additions and 4 deletions
@@ -95,7 +95,7 @@ struct SpaceScreen: View {
// controller attempts to anchor itself to the button that is no longer visible.
ToolbarItem(placement: .primaryAction) {
Menu {
if true {
if context.viewState.canEditChildren {
Section {
Button { context.send(viewAction: .addExistingRooms) } label: {
Label(L10n.actionAddExistingRooms, icon: \.room)