3.1 relational bug fixes

This commit is contained in:
Francis Cao committed 2026-04-15 10:31:21 -07:00
1 parent b7f51b3b01
commit 04eb4b675e
8 files changed
+33 -16

No files matched your search

+11 -2
View File
@@ -4,6 +4,7 @@ import { AlignEndHorizontal, Clock, Eye, PanelLeft, Sheet, Tag, User } from '@/c
import { LanguageButton } from '@/components/input/LanguageButton';
import { PreferencesButton } from '@/components/input/PreferencesButton';
import { Funnel, Gauge, Lightning, Magnet, Money, Network, Path, Target } from '@/components/svg';
import { buildPath } from '@/lib/url';
import {
Button,
Column,
@@ -29,10 +30,18 @@ export function ShareNav({
}) {
const share = useShare();
const { t, labels } = useMessages();
const { pathname } = useNavigation();
const { pathname, query } = useNavigation();
const { slug, parameters } = share;
const renderPath = (path: string) => `/share/${slug}${path}`;
const renderPath = (path: string) =>
buildPath(`/share/${slug}${path}`, {
...query,
event: undefined,
compare: undefined,
view: undefined,
unit: undefined,
excludeBounce: undefined,
});
const allItems = [
{