From b2ec75af6fac552a33e76c999f4c7bd4b7e20dea Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Thu, 18 Nov 2021 22:31:18 -0500 Subject: [PATCH] Update for latest TypeScript This seems to be a clear TypeScript bug, but oh well, the workaround is likely to be better code anyway. --- src/panel-teamdropdown.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/panel-teamdropdown.tsx b/src/panel-teamdropdown.tsx index 490663afc..407bbab4a 100644 --- a/src/panel-teamdropdown.tsx +++ b/src/panel-teamdropdown.tsx @@ -790,7 +790,7 @@ class FormatDropdownPanel extends PSRoomPanel { let curSection = ''; let curColumnNum = 0; - let curColumn: (FormatData | {id: '', section: string})[] = []; + let curColumn: (FormatData | {id: null, section: string})[] = []; const columns = [curColumn]; for (const format of formats) { if (format.column !== curColumnNum) { @@ -803,7 +803,7 @@ class FormatDropdownPanel extends PSRoomPanel { if (format.section !== curSection) { curSection = format.section; if (curSection) { - curColumn.push({id: '', section: curSection}); + curColumn.push({id: null, section: curSection}); } } curColumn.push(format);