mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-03-28 05:41:58 -04:00
Update extension parsing in Preview to match updated VM PR
This commit is contained in:
parent
2293eebaec
commit
363c0fdfb5
1 changed files with 3 additions and 3 deletions
|
@ -124,10 +124,10 @@ class Preview extends React.Component {
|
|||
return;
|
||||
}
|
||||
const extensionSet = new Set();
|
||||
if (projectData[0].targets) {
|
||||
projectData[0].targets.forEach(target => target.extensions.forEach(extension => {
|
||||
if (projectData[0].extensions) {
|
||||
projectData[0].extensions.forEach(extension => {
|
||||
extensionSet.add(EXTENSION_INFO[extension]);
|
||||
}));
|
||||
});
|
||||
}
|
||||
this.setState({
|
||||
extensions: Array.from(extensionSet)
|
||||
|
|
Loading…
Add table
Reference in a new issue