Skip to content

Commit

Permalink
fix(sonar): fix finding
Browse files Browse the repository at this point in the history
  • Loading branch information
oyo committed Oct 2, 2024
1 parent 85d2856 commit b8358ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/features/info/search/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ const fetchSearch = createAsyncThunk(
.filter((item: AppMarketplaceApp) =>
uuid
? searchExpr.exec(item.id)
: (item.name?.match(searchExpr) ??
item.provider.match(searchExpr))
: ((item.name && searchExpr.exec(item.name)) ??
(item.provider && searchExpr.exec(item.provider)))
)
.map((item: AppMarketplaceApp) => appToSearchItem(item)),
// Add an ESLint exception until there is a solution
Expand Down

0 comments on commit b8358ed

Please sign in to comment.