This commit is contained in:
Stuart Taylor
2018-04-11 14:51:47 +01:00
committed by Mrugesh Mohapatra
parent c4108aca5d
commit 3257122270
3 changed files with 3 additions and 7 deletions

View File

@ -58,7 +58,6 @@ class ShowClassic extends PureComponent {
} = this.props;
createFiles(files);
initTests(tests);
console.log(challengeMeta);
updateChallengeMeta(challengeMeta);
}
@ -93,7 +92,6 @@ class ShowClassic extends PureComponent {
},
files
} = this.props;
console.log(files);
const editors = Object.keys(files)
.map(key => files[key])
.map((file, index) => (
@ -105,10 +103,9 @@ class ShowClassic extends PureComponent {
</Fragment>
));
const showPreview = (
const showPreview =
challengeType === challengeTypes.html ||
challengeType === challengeTypes.modern
);
challengeType === challengeTypes.modern;
const blockNameTitle = `${blockName} - ${title}`;
return (
<Fragment>

View File

@ -91,7 +91,7 @@ export const challengeMetaSelector = state => state[ns].challengeMeta;
export const challengeTestsSelector = state => state[ns].challengeTests;
export const consoleOutputSelector = state => state[ns].consoleOut;
export const isCompletionModalOpenSelector = state =>
state[ns].modal.completion;
state[ns].modal.completion;
export const isJSEnabledSelector = state => state[ns].isJSEnabled;
export const successMessageSelector = state => state[ns].successMessage;

View File

@ -1,4 +1,3 @@
import { of } from 'rxjs/observable/of';
import identity from 'lodash/identity';
// import { fetchScript } from './fetch-and-cache.js';