Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Street view not visible on subsequent map click #717

Merged
merged 1 commit into from
Feb 6, 2025
Merged

Conversation

Raruto
Copy link
Collaborator

@Raruto Raruto commented Feb 6, 2025

Fixes reference to undefined GUI variable.

async function _clearContents() {
await Promise.allSettled((ApplicationState.contentsdata || []).map(async d => {
if (d.content instanceof Component || d.content instanceof Panel) {
await promisify(d.content.unmount());
} else {
$(GUI.getComponent('contents').parent).empty();
}
}));
ApplicationState.contentsdata.splice(0, ApplicationState.contentsdata.length);
}

Closes: #713

@Raruto Raruto merged commit 88eaefa into dev Feb 6, 2025
2 checks passed
@Raruto Raruto deleted the issue-713-bis branch February 6, 2025 10:53
github-actions bot pushed a commit that referenced this pull request Feb 6, 2025
(cherry picked from commit 88eaefa)
volterra79 pushed a commit that referenced this pull request Feb 6, 2025
(cherry picked from commit 88eaefa)

Co-authored-by: Raruto <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport to v3.11.x bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Street view not visible on subsequent map click
2 participants