Update extension parsing in Preview to match updated VM PR

This commit is contained in:
Connor Hudson 2018-06-22 09:02:11 -04:00
parent 2293eebaec
commit 363c0fdfb5

View file

@ -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)