mirror of
https://github.com/scratchfoundation/scratch-analysis.git
synced 2025-05-04 09:53:27 -04:00
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:
parent
37727fdbce
commit
f37f2d2790
5 changed files with 213 additions and 4 deletions
lib
|
@ -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 : [])
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue