From d3dbac6e778c4362f49c77c43366cd61a92df938 Mon Sep 17 00:00:00 2001 From: sawka Date: Tue, 30 Jan 2024 11:29:12 -0800 Subject: [PATCH] fix missing react key --- src/app/sidebar/sidebar.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/sidebar/sidebar.tsx b/src/app/sidebar/sidebar.tsx index a79dfd7b4..d824fa1a0 100644 --- a/src/app/sidebar/sidebar.tsx +++ b/src/app/sidebar/sidebar.tsx @@ -175,7 +175,7 @@ class MainSideBar extends React.Component<{}, {}> { getSessions() { if (!GlobalModel.sessionListLoaded.get()) return
loading ...
; - let sessionList = []; + let sessionList: Session[] = []; let activeSessionId = GlobalModel.activeSessionId.get(); for (let session of GlobalModel.sessionList) { if (!session.archived.get() || session.sessionId == activeSessionId) { @@ -189,6 +189,7 @@ class MainSideBar extends React.Component<{}, {}> { const sessionRunningCommands = sessionScreens.some((screen) => screen.numRunningCmds.get() > 0); return ( {index + 1}} contents={session.name.get()}