Skip to content

Commit dd52ef3

Browse files
committed
Update query string formatting in LinkToRelatedProducts, PendingReviews, and LinkToRelatedCustomers components
1 parent c0de372 commit dd52ef3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

react/react-admin/src/categories/LinkToRelatedProducts.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ const LinkToRelatedProducts = () => {
1818
component={Link}
1919
to={{
2020
pathname: '/products',
21-
search: queryString.stringify({
21+
search: `?${queryString.stringify({
2222
filter: JSON.stringify({ category_id: record.id }),
23-
}),
23+
})}`,
2424
}}
2525
sx={{ display: 'inline-flex', alignItems: 'center' }}
2626
>

react/react-admin/src/dashboard/PendingReviews.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ const PendingReviews = () => {
5252
<CardWithIcon
5353
to={{
5454
pathname: '/reviews',
55-
search: queryString.stringify({
55+
search: `?${queryString.stringify({
5656
filter: JSON.stringify({ status: 'pending' }),
57-
}),
57+
})}`,
5858
}}
5959
icon={CommentIcon}
6060
title={translate('pos.dashboard.pending_reviews')}

react/react-admin/src/segments/LinkToRelatedCustomers.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ const LinkToRelatedCustomers = ({ segment }: { segment: string }) => {
1515
component={Link}
1616
to={{
1717
pathname: '/customers',
18-
search: queryString.stringify({
18+
search: `?${queryString.stringify({
1919
filter: JSON.stringify({ groups: segment }),
20-
}),
20+
})}`,
2121
}}
2222
state={{ _scrollToTop: true }}
2323
sx={{

0 commit comments

Comments
 (0)