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 Bram Kragten
parent e4e6edd573
commit ce414a5ca9

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
);
}