Skip to content

Commit 8187c56

Browse files
Adebesin-Cellclaude
andcommitted
fix: always persist chart layout tab state in URL
Remove the `permanent: props.permalink` option so the layout query param is written to the URL on every page (including Compare Trends), not only when the permalink prop is true. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8518b37 commit 8187c56

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/components/Package/TrendsChart.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1624,9 +1624,7 @@ watch(selectedMetric, value => {
16241624
})
16251625
16261626
// Sparkline charts (a11y alternative display for multi series)
1627-
const chartLayout = usePermalink<'combined' | 'split'>('layout', 'combined', {
1628-
permanent: props.permalink,
1629-
})
1627+
const chartLayout = usePermalink<'combined' | 'split'>('layout', 'combined')
16301628
const isSparklineLayout = computed({
16311629
get: () => chartLayout.value === 'split',
16321630
set: (v: boolean) => {

0 commit comments

Comments
 (0)