diff --git a/src/Logic/UIEventSource.ts b/src/Logic/UIEventSource.ts index c9f5f2f3d0..4d8812b8da 100644 --- a/src/Logic/UIEventSource.ts +++ b/src/Logic/UIEventSource.ts @@ -121,7 +121,7 @@ export class Stores { } src.addCallbackD((contents) => { for (let i = 0; i < contents.length; i++) { - sources[i].setData(contents[i]) + sources[i]?.setData(contents[i]) } }) return src diff --git a/src/UI/BaseUIElement.ts b/src/UI/BaseUIElement.ts index f7e87f38fe..aef860aa13 100644 --- a/src/UI/BaseUIElement.ts +++ b/src/UI/BaseUIElement.ts @@ -73,9 +73,6 @@ export default abstract class BaseUIElement { return this } - /** - * The same as 'Render', but creates a HTML element instead of the HTML representation - */ public ConstructElement(): HTMLElement { if (typeof window === undefined) { return undefined