Skip to content

Commit 8868536

Browse files
authored
Merge pull request #2093 from devtron-labs/fix/select-k8s-version
fix: sync selected k8s version from url
2 parents b66aa4d + 80888ed commit 8868536

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/ClusterNodes/NodeDetailsList.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ export default function NodeDetailsList({ isSuperAdmin, renderRefreshBar, addTab
133133
const qs = queryString.parse(location.search)
134134
const offset = Number(qs['offset'])
135135
setNodeListOffset(offset || 0)
136+
const version = qs['k8sversion']
137+
if (version && typeof version === 'string' && selectedVersion.value !== version) {
138+
setSelectedVersion({ label: `K8s version: ${version}`, value: version })
139+
}
136140
}, [location.search])
137141

138142
useEffect(() => {

0 commit comments

Comments
 (0)