Fix for IBE-198, scratch-analysis should be able to deal with a JSON project file that does not contain extensions data

This commit is contained in:
Colby Gutierrez-Kraybill 2022-05-26 16:55:45 -04:00
parent 37727fdbce
commit f37f2d2790
5 changed files with 213 additions and 4 deletions

View file

@ -120,8 +120,8 @@ const blocks = function (targets) {
const extensions = function (list) {
return {
count: list.length,
id: list
count: (typeof list === 'object' ? list.length : 0),
id: (typeof list === 'object' ? list : [])
};
};