Skip to content

Commit 96a2db9

Browse files
Fix textual summary duplication bug
1 parent f3dc555 commit 96a2db9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/javascript/react/textual_summary_wrapper.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ 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+
10+
if (props.options && Object.keys(props.options).length > 0) {
1011
document.addEventListener('DOMContentLoaded', () => {
1112
ReactDOM.render(component, document.body.appendChild(document.createElement('div')));
1213
});

0 commit comments

Comments
 (0)