From 1036db45324db51e1d2e618f96eb2cf0b0f82ee4 Mon Sep 17 00:00:00 2001 From: Nino Crljenec Date: Mon, 25 Jan 2021 10:52:22 +0100 Subject: [PATCH] setCurrent to null on BrowserMenu open --- src/components/BrowserMenu/BrowserMenu.react.js | 1 + src/dashboard/Data/Browser/BrowserToolbar.react.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/BrowserMenu/BrowserMenu.react.js b/src/components/BrowserMenu/BrowserMenu.react.js index c3d2a9802a..46479fff6b 100644 --- a/src/components/BrowserMenu/BrowserMenu.react.js +++ b/src/components/BrowserMenu/BrowserMenu.react.js @@ -62,6 +62,7 @@ export default class BrowserMenu extends React.Component { if (!this.props.disabled) { onClick = () => { this.setState({ open: true }); + this.props.setCurrent(null); }; } return ( diff --git a/src/dashboard/Data/Browser/BrowserToolbar.react.js b/src/dashboard/Data/Browser/BrowserToolbar.react.js index fbad2f1adc..1a738ea7fa 100644 --- a/src/dashboard/Data/Browser/BrowserToolbar.react.js +++ b/src/dashboard/Data/Browser/BrowserToolbar.react.js @@ -92,7 +92,7 @@ let BrowserToolbar = ({ let menu = null; if (relation) { menu = ( - + + {enableColumnManipulation ? :