File tree Expand file tree Collapse file tree 1 file changed +2
-15
lines changed
src/Components/Endpoints/src/Rendering Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -235,22 +235,9 @@ async Task Execute()
235235 // the child components to finish executing SetParametersAsync
236236 await pendingWork ;
237237 }
238- catch ( Exception ex )
238+ catch ( NavigationException navigationException )
239239 {
240- // We need to handle NavigationException specially to ensure it gets properly
241- // processed through HandleNavigationException rather than being rethrown
242- if ( ex is NavigationException navigationEx )
243- {
244- if ( _httpContext is not null )
245- {
246- await HandleNavigationException ( _httpContext , navigationEx ) ;
247- }
248- return ;
249- }
250- else
251- {
252- throw ;
253- }
240+ await HandleNavigationException ( _httpContext , navigationException ) ;
254241 }
255242 }
256243 }
You can’t perform that action at this time.
0 commit comments