From 5c32940f02dd78222414c1b3c993d33933c2d1cc Mon Sep 17 00:00:00 2001 From: Matias Date: Sat, 27 Jul 2019 07:33:32 -0300 Subject: [PATCH] alternative to get ecosystem from file --- Panels/ProductsPanel.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Panels/ProductsPanel.js b/Panels/ProductsPanel.js index 01cf93ce4..958183d4c 100644 --- a/Panels/ProductsPanel.js +++ b/Panels/ProductsPanel.js @@ -61,6 +61,9 @@ function newProductsPanel () { /* First thing is to build the thisObject.productCards array */ let ecosystem = JSON.parse(window.localStorage.getItem('ecosystem')) + if (ecosystem === null || ecosystem === undefined) { + ecosystem = getUserEcosystem() + } for (let i = 0; i < ecosystem.devTeams.length; i++) { let devTeam = ecosystem.devTeams[i]