fix: error when loading account page and quickly navigating to another page (@fehmer) (#5555)

This commit is contained in:
Christian Fehmer 2024-07-03 12:03:50 +02:00 committed by GitHub
parent 4f29aa55aa
commit ea650278ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,9 +22,12 @@ export function init(
}
function update(calendar?: MonkeyTypes.TestActivityCalendar): void {
const container = document.querySelector(
"#testActivity .activity"
) as HTMLElement;
const container = document.querySelector("#testActivity .activity");
if (container === null) {
return;
}
container.innerHTML = "";
if (calendar === undefined) {