Only list themes that have a name in the dropdown

main
Mat Gadd 7 years ago committed by Jake Dexheimer
parent 91654f1477
commit 95c8413c83

@ -125,7 +125,7 @@ class Editor extends React.Component {
<Toolbar> <Toolbar>
<Dropdown <Dropdown
selected={THEMES_HASH[this.state.theme]} selected={THEMES_HASH[this.state.theme]}
list={THEMES} list={THEMES.filter(t => t.name)}
onChange={theme => this.setState({ theme: theme.id })} onChange={theme => this.setState({ theme: theme.id })}
/> />
<Dropdown <Dropdown

Loading…
Cancel
Save