Add check if cowebsite still exist before highlight
This commit is contained in:
@@ -619,7 +619,10 @@ class CoWebsiteManager {
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.fire();
|
this.fire();
|
||||||
}, animationTime);
|
}, animationTime);
|
||||||
} else if (!highlightedEmbed) {
|
} else if (
|
||||||
|
!highlightedEmbed &&
|
||||||
|
this.getCoWebsites().find((searchCoWebsite) => searchCoWebsite.getId() === coWebsite.getId())
|
||||||
|
) {
|
||||||
highlightedEmbedScreen.toggleHighlight({
|
highlightedEmbedScreen.toggleHighlight({
|
||||||
type: "cowebsite",
|
type: "cowebsite",
|
||||||
embed: coWebsite,
|
embed: coWebsite,
|
||||||
|
|||||||
Reference in New Issue
Block a user