We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3dc555 commit 96a2db9Copy full SHA for 96a2db9
app/javascript/react/textual_summary_wrapper.jsx
@@ -6,7 +6,8 @@ import textualSummaryGenericClick from './textual_summary_click';
6
export default (props) => {
7
const onClick = props.onClick || textualSummaryGenericClick;
8
const component = <TextualSummary onClick={onClick} {...props} />;
9
- if (props.options) {
+
10
+ if (props.options && Object.keys(props.options).length > 0) {
11
document.addEventListener('DOMContentLoaded', () => {
12
ReactDOM.render(component, document.body.appendChild(document.createElement('div')));
13
});
0 commit comments