Skip to content

Commit

Permalink
Fix React key bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mfix22 committed Feb 25, 2017
1 parent f6e6c9e commit b7cf969
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/Converter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ class Sanitizer extends Component {
{
Object.keys(fileTypes).map(op => (
<button
key={op}
className={`switch__btn merge ${this.state.operation === op ? 'switch__btn-active' : ''}`}
onClick={() => this.setState({
operation: op,
Expand Down
4 changes: 2 additions & 2 deletions src/helpers/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ module.exports = {
MERGE,
CONVERT,
fileTypes: {
[CONVERT]: ['png', 'jpg', 'bmp', 'tiff'],
[MERGE]: ['pdf', 'gif']
[MERGE]: ['pdf', 'gif'],
[CONVERT]: ['png', 'jpg', 'bmp', 'tiff']
},
blue,
lightBlue,
Expand Down

0 comments on commit b7cf969

Please sign in to comment.