Skip to content

Commit c249a40

Browse files
committed
refactor: improve co-location for serverVersion
1 parent c28f1d8 commit c249a40

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

site/src/pages/WorkspacePage/Workspace.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ export const Workspace: FC<React.PropsWithChildren<WorkspaceProps>> = ({
113113
canAutostart,
114114
}) => {
115115
const navigate = useNavigate();
116-
const serverVersion = buildInfo?.version || "";
117116
const { saveLocal, getLocal } = useLocalStorage();
118117

119118
const [showAlertPendingInQueue, setShowAlertPendingInQueue] = useState(false);
@@ -346,7 +345,7 @@ export const Workspace: FC<React.PropsWithChildren<WorkspaceProps>> = ({
346345
showBuiltinApps={canUpdateWorkspace}
347346
hideSSHButton={hideSSHButton}
348347
hideVSCodeDesktopButton={hideVSCodeDesktopButton}
349-
serverVersion={serverVersion}
348+
serverVersion={buildInfo?.version || ""}
350349
onUpdateAgent={handleUpdate} // On updating the workspace the agent version is also updated
351350
/>
352351
)}

0 commit comments

Comments
 (0)