Skip to content

Commit b5864ca

Browse files
authored
fix(google-maps): incorrect variable access for server-side rendering check (#19166)
We added a SSR check to the google-maps window info directive, but when this PR landed in the patch branch, the variable names no longer matched. The variable for the `_infoWindow` has been made public with 3e00f4c, but this change did not land in the patch branch as it targets a next minor release.
1 parent 0bfea30 commit b5864ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/google-maps/map-info-window/map-info-window.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export class MapInfoWindow implements OnInit, OnDestroy {
117117

118118
// If no info window has been created on the server, we do not try closing it.
119119
// On the server, an info window cannot be created and this would cause errors.
120-
if (this.infoWindow) {
120+
if (this._infoWindow) {
121121
this.close();
122122
}
123123
}

0 commit comments

Comments
 (0)