1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Mobile: Fixes #3022: Fix issue with action button disappearing in some contexts (#3702)

This commit is contained in:
Laurent
2020-09-07 17:42:16 +01:00
committed by GitHub
parent 68aefd5e4c
commit 08d4b5a714
3 changed files with 12 additions and 3 deletions

View File

@ -93,7 +93,7 @@ class ActionButtonComponent extends React.Component {
}
if (!buttonComps.length && !this.props.mainButton) {
return <ReactNativeActionButton style={{ display: 'none' }} />;
return null;
}
const mainButton = this.props.mainButton ? this.props.mainButton : {};