This commit is contained in:
Jan Prochazka
2020-12-12 21:48:42 +01:00
parent 1a181ff714
commit fa5e128d45

View File

@@ -148,6 +148,7 @@ export default function ToolBar({ toolbarPortalRef }) {
{!!currentTab &&
tabs[currentTab.tabComponent] &&
tabs[currentTab.tabComponent].allowAddToFavorites &&
currentTab.props &&
tabs[currentTab.tabComponent].allowAddToFavorites(currentTab.props) && (
<ToolbarButton onClick={addToFavorite} icon="icon favorite">
Add to favorites