Skip to content

Commit

Permalink
Sentry fixes (#5337)
Browse files Browse the repository at this point in the history
* fix 4734275944

* fix 4747537909

* changeset

---------

Co-authored-by: Paweł Chyła <[email protected]>
  • Loading branch information
Cloud11PL and poulch committed Jan 9, 2025
1 parent 47d93f0 commit 3c9889b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/cool-tips-explode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---

Some sentry errors have been fixed.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const ChannelsAvailability: React.FC<ChannelsAvailabilityCardProps> = props => {
>
{channels
? channels.map(data => {
const channelErrors = errors?.filter(error => error.channels.includes(data.id)) || [];
const channelErrors = errors?.filter(error => error.channels?.includes(data.id)) || [];

return (
<ChannelAvailabilityItemWrapper messages={messages} data={data} key={data.id}>
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/makeTopLevelSearch/makeTopLevelSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function makeTopLevelSearch<TData extends SearchData, TVariables extends SearchV
...prev,
search: {
...prev.search,
edges: [...prev.search.edges, ...next.search.edges],
edges: [...(prev.search?.edges ?? []), ...(next.search?.edges ?? [])],
pageInfo: next.search.pageInfo,
},
};
Expand Down

0 comments on commit 3c9889b

Please sign in to comment.