Skip to content

Commit

Permalink
fix(StateMapEditor): default entry blank.
Browse files Browse the repository at this point in the history
User explicitly sets all tags in control rod label map.
  • Loading branch information
aronhelser committed Jun 22, 2018
1 parent 041b268 commit 3c9c87d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/simput/StateMapEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ export default class StateMapEditor extends React.Component {
// Extract control maps
const controlMapIds = Object.keys(assembly).filter((id) => {
labels[id] = assembly[id].labels;
// add blank entry, so user sets all values explicitly.
if (labels[id].length) labels[id].unshift('');
return assembly[id].type === 'control';
});

Expand Down

0 comments on commit 3c9c87d

Please sign in to comment.