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.
2 parents 865e34f + fc28798 commit 43566cfCopy full SHA for 43566cf
app/javascript/react/textual_summary_wrapper.jsx
@@ -6,7 +6,7 @@ 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) {
+ if (props.options && Object.keys(props.options).length > 0) {
10
document.addEventListener('DOMContentLoaded', () => {
11
ReactDOM.render(component, document.body.appendChild(document.createElement('div')));
12
});
0 commit comments