Skip to content

Commit b249a62

Browse files
committed
refactor(@angular/ssr): replace incorrect check
This should be undefined and not null.
1 parent 58dcfd1 commit b249a62

File tree

1 file changed

+1
-1
lines changed
  • packages/angular/ssr/src/utils

1 file changed

+1
-1
lines changed

packages/angular/ssr/src/utils/ng.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export async function renderAngular(
109109

110110
if (!routerIsProvided) {
111111
hasNavigationError = false;
112-
} else if (lastSuccessfulNavigation?.finalUrl && initialUrl !== null) {
112+
} else if (lastSuccessfulNavigation?.finalUrl && initialUrl !== undefined) {
113113
hasNavigationError = false;
114114

115115
const { finalUrl } = lastSuccessfulNavigation;

0 commit comments

Comments
 (0)