Skip to content

TagSpaces is an offline, open source, document manager with tagging support

making dialog title optional

Ilian Sapundshiev11c398ecc947
diff --git a/app/components/dialogs/GenericDialog.js b/app/components/dialogs/GenericDialog.js
index 4e5c97f5c..8098038cd 100644
--- a/app/components/dialogs/GenericDialog.js
+++ b/app/components/dialogs/GenericDialog.js
@@ -91,7 +91,7 @@ class GenericDialog extends React.Component<Props> {
onClose={this.props.onClose}
onKeyDown={onEnterKey || ((event) => onEnterKeyHandler(event, onClose))}
>
- {renderTitle ? renderTitle() : this.renderTitle()}
+ {renderTitle && renderTitle()}
{renderContent ? renderContent() : this.renderContent()}
{renderActions ? renderActions() : this.renderActions()}
</Dialog>