add keys to force new components whenever workspaces changes

This commit is contained in:
sawka 2023-12-18 21:47:01 -08:00
parent e66f34c9b5
commit d410e5d07f

View File

@ -41,11 +41,11 @@ class WorkspaceView extends React.Component<{}, {}> {
return (
<div className={cn("session-view", { "is-hidden": isHidden })} data-sessionid={session.sessionId}>
<ScreenTabs session={session} />
<ScreenTabs key={"tabs-" + session.sessionId} session={session} />
<ErrorBoundary>
<ScreenView session={session} screen={activeScreen} />
<ScreenView key={"screenview-" + session.sessionId} session={session} screen={activeScreen} />
<div className="cmdinput-height-placeholder" style={{ height: cmdInputHeight }}></div>
<CmdInput />
<CmdInput key={"cmdinput-" + session.sessionId} />
</ErrorBoundary>
</div>
);