Skip to content

Commit 48b88db

Browse files
committed
Fix new default value.
1 parent 1c0f1d7 commit 48b88db

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Components/Endpoints/src/DependencyInjection/HttpNavigationManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ internal sealed class HttpNavigationManager : NavigationManager, IHostEnvironmen
1212

1313
[FeatureSwitchDefinition(_disableThrowNavigationException)]
1414
private static bool _throwNavigationException =>
15-
!AppContext.TryGetSwitch(_disableThrowNavigationException, out var switchValue) && switchValue;
15+
!AppContext.TryGetSwitch(_disableThrowNavigationException, out var switchValue) || !switchValue;
1616

1717
private Func<string, Task>? _onNavigateTo;
1818

src/Components/Server/src/Circuits/RemoteNavigationManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ internal sealed partial class RemoteNavigationManager : NavigationManager, IHost
2121

2222
[FeatureSwitchDefinition(_disableThrowNavigationException)]
2323
private static bool _throwNavigationException =>
24-
!AppContext.TryGetSwitch(_disableThrowNavigationException, out var switchValue) && switchValue;
24+
!AppContext.TryGetSwitch(_disableThrowNavigationException, out var switchValue) || !switchValue;
2525
private Func<string, Task>? _onNavigateTo;
2626

2727
public event EventHandler<Exception>? UnhandledException;

0 commit comments

Comments
 (0)