Fix up some more type defs
This commit is contained in:
parent
02e72d8b04
commit
3e38d92fa4
7 changed files with 11 additions and 12 deletions
|
@ -392,7 +392,7 @@ export default class WidgetUtils {
|
|||
}
|
||||
const widgets = client.getAccountData('m.widgets');
|
||||
if (!widgets) return;
|
||||
const userWidgets: IWidgetEvent[] = widgets.getContent() || {};
|
||||
const userWidgets: Record<string, IWidgetEvent> = widgets.getContent() || {};
|
||||
Object.entries(userWidgets).forEach(([key, widget]) => {
|
||||
if (widget.content && widget.content.type === "m.integration_manager") {
|
||||
delete userWidgets[key];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue