Skip to content

Commit

Permalink
fix SketchBox language (#525)
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycpoon committed May 21, 2021
1 parent f854c92 commit e35d714
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Sketches/containers/SketchesContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ import { togglePanel } from '../../../actions/uiActions.js';
import { setMostRecentProgram } from '../../../actions/userDataActions.js';
import { OPEN_PANEL_LEFT, CLOSED_PANEL_LEFT, PANEL_SIZE } from '../../../constants';
import Sketches from '../index.js';
import { getLanguageData } from '../../../util/languages/languages.js';

const mapStateToProps = (state) => {
const { mostRecentProgram } = state.userData;
const programs = state.programs.keySeq().map((id) => {
const temp = state.programs.get(id, Immutable.Map()).toJS();
temp.key = id;
temp.language = getLanguageData(temp.language);
return temp;
});

Expand Down

0 comments on commit e35d714

Please sign in to comment.