mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
add keys to force new components whenever workspaces changes
This commit is contained in:
parent
e66f34c9b5
commit
d410e5d07f
@ -41,11 +41,11 @@ class WorkspaceView extends React.Component<{}, {}> {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={cn("session-view", { "is-hidden": isHidden })} data-sessionid={session.sessionId}>
|
<div className={cn("session-view", { "is-hidden": isHidden })} data-sessionid={session.sessionId}>
|
||||||
<ScreenTabs session={session} />
|
<ScreenTabs key={"tabs-" + session.sessionId} session={session} />
|
||||||
<ErrorBoundary>
|
<ErrorBoundary>
|
||||||
<ScreenView session={session} screen={activeScreen} />
|
<ScreenView key={"screenview-" + session.sessionId} session={session} screen={activeScreen} />
|
||||||
<div className="cmdinput-height-placeholder" style={{ height: cmdInputHeight }}></div>
|
<div className="cmdinput-height-placeholder" style={{ height: cmdInputHeight }}></div>
|
||||||
<CmdInput />
|
<CmdInput key={"cmdinput-" + session.sessionId} />
|
||||||
</ErrorBoundary>
|
</ErrorBoundary>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user