[ESIVFC-81] Invalid attempt to iterate non-iterable instance.

Error Message

The following error message will appear in the console of the web browser, when the project permission scheme does not contain the project role atlassian-addons-project-access in the permissions of it.

TypeError: Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a Symbol.iterator method. at a (createForOfIteratorHelper.js:26:11) at Iw (App.js:58:4) at ei (react-dom.production.min.js:153:146) at Gi (react-dom.production.min.js:175:309) at Cc (react-dom.production.min.js:263:406) at Ol (react-dom.production.min.js:246:265) at Sl (react-dom.production.min.js:246:194) at hl (react-dom.production.min.js:239:172) at react-dom.production.min.js:123:115 at t.unstable_runWithPriority (scheduler.production.min.js:19:467)

Result

This will cause the issue panel to be completely hidden.

Solution

Solution is to add the atlassian-addons-project-access to permission schemes of the project.

Related Issue

https://christosmoysiadisdev.atlassian.net/browse/ESIVFC-81