Skip to content

Commit

Permalink
fix flash error issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Megha-Dev-19 committed Dec 18, 2023
1 parent 60c6be9 commit db888f1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/devhub/page/addon.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ if (!getAllAddons || !setCommunityAddon) {
}

const availableAddons = getAllAddons();
const addonMatch = availableAddons.find((it) => it.id === addon.addon_id);

const addonMatch = (availableAddons ?? []).find(
(it) => it.id === addon.addon_id
);

if (!addonMatch) {
return (
Expand Down

0 comments on commit db888f1

Please sign in to comment.