Skip to content

Commit 83fbb3a

Browse files
committed
Fix display of toOne properties
The navlink now also seems to loose the environment for its own content.
1 parent b5e5bbe commit 83fbb3a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/DirectToSwiftUI/Views/BasicLook/Reusable/D2SNavigationLink.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,13 @@ public struct D2SNavigationLink<Label, Destination>: View
4242
isActive: isActive!)
4343
{
4444
label
45+
.ruleContext(context)
4546
}
4647
}
4748
else {
4849
NavigationLink(destination: destination.ruleContext(context)) {
4950
label
51+
.ruleContext(context)
5052
}
5153
}
5254
}

0 commit comments

Comments
 (0)