Correctly replace rebuilt badges in view (#7487)

This commit is contained in:
Thomas Lovén 2020-10-26 20:55:47 +01:00 committed by GitHub
parent 733ce3b6b8
commit 61e17395c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -224,7 +224,7 @@ export class HUIView extends UpdatingElement {
badgeElToReplace
);
}
this._badges = this._cards!.map((curBadgeEl) =>
this._badges = this._badges!.map((curBadgeEl) =>
curBadgeEl === badgeElToReplace ? newBadgeEl : curBadgeEl
);
}