diff --git a/src/components/AddOn/core/AddOnStore/AddOnStore.spec.tsx b/src/components/AddOn/core/AddOnStore/AddOnStore.spec.tsx index ce5667ee80..78b46cdaa0 100644 --- a/src/components/AddOn/core/AddOnStore/AddOnStore.spec.tsx +++ b/src/components/AddOn/core/AddOnStore/AddOnStore.spec.tsx @@ -500,7 +500,7 @@ describe('Testing AddOnStore Component', () => { ).map((plugin: InterfacePluginHelper) => plugin.id); plugins = plugins.map((plugin: InterfacePluginHelper) => { - plugin.installed = (installIds || []).includes(plugin.id); + plugin.installed = installIds.includes(plugin.id); return plugin; }); diff --git a/src/components/AddOn/core/AddOnStore/AddOnStore.tsx b/src/components/AddOn/core/AddOnStore/AddOnStore.tsx index 6ea661a657..cf56996332 100644 --- a/src/components/AddOn/core/AddOnStore/AddOnStore.tsx +++ b/src/components/AddOn/core/AddOnStore/AddOnStore.tsx @@ -49,7 +49,7 @@ function addOnStore(): JSX.Element { ).map((plugin: InterfacePluginHelper) => plugin.id); plugins = plugins.map((plugin: InterfacePluginHelper) => { - plugin.installed = (installIds || []).includes(plugin.id); + plugin.installed = installIds.includes(plugin.id); return plugin; });