Skip to content

Commit 43566cf

Browse files
authored
Merge pull request #9228 from GilbertCherrie/fix-textual-summary-duplication
Fix textual summary duplication bug
2 parents 865e34f + fc28798 commit 43566cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/javascript/react/textual_summary_wrapper.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import textualSummaryGenericClick from './textual_summary_click';
66
export default (props) => {
77
const onClick = props.onClick || textualSummaryGenericClick;
88
const component = <TextualSummary onClick={onClick} {...props} />;
9-
if (props.options) {
9+
if (props.options && Object.keys(props.options).length > 0) {
1010
document.addEventListener('DOMContentLoaded', () => {
1111
ReactDOM.render(component, document.body.appendChild(document.createElement('div')));
1212
});

0 commit comments

Comments
 (0)