mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-02 21:53:58 +00:00
fix
This commit is contained in:
@@ -148,6 +148,7 @@ export default function ToolBar({ toolbarPortalRef }) {
|
|||||||
{!!currentTab &&
|
{!!currentTab &&
|
||||||
tabs[currentTab.tabComponent] &&
|
tabs[currentTab.tabComponent] &&
|
||||||
tabs[currentTab.tabComponent].allowAddToFavorites &&
|
tabs[currentTab.tabComponent].allowAddToFavorites &&
|
||||||
|
currentTab.props &&
|
||||||
tabs[currentTab.tabComponent].allowAddToFavorites(currentTab.props) && (
|
tabs[currentTab.tabComponent].allowAddToFavorites(currentTab.props) && (
|
||||||
<ToolbarButton onClick={addToFavorite} icon="icon favorite">
|
<ToolbarButton onClick={addToFavorite} icon="icon favorite">
|
||||||
Add to favorites
|
Add to favorites
|
||||||
|
|||||||
Reference in New Issue
Block a user