Skip to content

Commit a416e91

Browse files
authored
fix(marketplace): minor filter fix on catalog tag clicking (#1743)
Signed-off-by: Yi Cai <yicai@redhat.com>
1 parent 042e36d commit a416e91

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@red-hat-developer-hub/backstage-plugin-marketplace': patch
3+
---
4+
5+
Fixed filter function of clicking catalog tag on a plugin card.

workspaces/marketplace/plugins/marketplace/src/components/PluginCard.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,7 @@ export const PluginCard = ({ plugin }: { plugin: MarketplacePlugin }) => {
191191
>
192192
<CategoryLinkButton
193193
categoryName={plugin.spec.categories[0]}
194-
to={withFilter(
195-
'spec.categories',
196-
plugin.spec.categories[0],
197-
)}
194+
to={withFilter('category', plugin.spec.categories[0])}
198195
onClick={e => e.stopPropagation()}
199196
/>
200197
</Typography>

0 commit comments

Comments
 (0)