Skip to content

Commit

Permalink
fix(client): Missing Option breaks Client
Browse files Browse the repository at this point in the history
  • Loading branch information
Marius Ostheimer committed Jun 23, 2020
1 parent 21717f7 commit fe0cbf9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ etc/
lib/
node_modules/
uploads/
.idea/
2 changes: 1 addition & 1 deletion client/src/Edit/elements/OptionsOutput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default class OptionsOutput extends Component<Props> {
const { value } = this.props;
return (
<select disabled>
<option value={typeof value === "string" ? value : value.value}>{typeof value === "string" ? value : value.label}</option>)
<option value={typeof value === "string" ? value : value && value.value}>{typeof value === "string" ? value : value && value.label}</option>)
</select>
);
}
Expand Down

0 comments on commit fe0cbf9

Please sign in to comment.