Skip to content

Commit 647151b

Browse files
committed
Check the value of hideUploadButton
1 parent 28727b1 commit 647151b

File tree

1 file changed

+1
-1
lines changed
  • src/containers/SequenceSearch/components/SearchForm

1 file changed

+1
-1
lines changed

src/containers/SequenceSearch/components/SearchForm/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class SearchForm extends React.Component {
6868
const searchButtonColor = this.props.customStyle && this.props.customStyle.searchButtonColor ? this.props.customStyle.searchButtonColor : "";
6969
const clearButtonColor = this.props.customStyle && this.props.customStyle.clearButtonColor ? this.props.customStyle.clearButtonColor : "#6c757d";
7070
const uploadButtonColor = this.props.customStyle && this.props.customStyle.uploadButtonColor ? this.props.customStyle.uploadButtonColor : "";
71-
const hideUploadButton = this.props.customStyle && this.props.customStyle.hideUploadButton ? "none" : "initial";
71+
const hideUploadButton = this.props.customStyle && this.props.customStyle.hideUploadButton && this.props.customStyle.hideUploadButton === "true" ? "none" : "initial";
7272
return (
7373
<div>
7474
<div className="row">

0 commit comments

Comments
 (0)