Skip to content

Commit 20952a4

Browse files
Use correct tablet name when constructing move tablet URL
1 parent 3405837 commit 20952a4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

client/src/components/Cluster/MoveTabletModal.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@ export default function MoveTabletModal({ fromGroup, tablet, groups, onHide }) {
3737
}, [saneZeroUrl, dispatch])
3838

3939
// /moveTablet?tablet=name&group=2
40+
// tablet keys are in format "namespace-predicate", strip the namespace prefix
41+
const tabletName = tablet.replace(/^\d+-/, '')
4042
const getUrl = () =>
4143
`${sanitizeUrl(zeroUrlInput)}/moveTablet?tablet=${encodeURIComponent(
42-
tablet,
44+
tabletName,
4345
)}&group=${targetGroup}`
4446

4547
const humanizeGroupSize = (group) => {

0 commit comments

Comments
 (0)