Skip to content

Commit 2449790

Browse files
authored
fix(app): only update target slug on target change (#7033)
1 parent 88ce5d3 commit 2449790

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.changeset/cold-bananas-admire.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'hive': patch
3+
---
4+
5+
Stay in the opened page when switching between targets

packages/web/app/src/components/layouts/target-selector.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,7 @@ export function TargetSelector(props: {
8787
value={props.currentTargetSlug}
8888
onValueChange={id => {
8989
void router.navigate({
90-
to: '/$organizationSlug/$projectSlug/$targetSlug',
9190
params: {
92-
organizationSlug: props.currentOrganizationSlug,
93-
projectSlug: props.currentProjectSlug,
9491
targetSlug: id,
9592
},
9693
});

0 commit comments

Comments
 (0)