mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
fix
This commit is contained in:
parent
93af08626a
commit
cac85d776a
@ -48,7 +48,7 @@ export default function WidgetColumnBar({ children, onChangeCollapsedWidgets = u
|
||||
);
|
||||
const toggleCollapsed = (name) => {
|
||||
// skip collapse last uncollapsed item
|
||||
if (!childArray.find((x) => x.props.name != name && !collapsedWidgets.includes(x.props.name))) return;
|
||||
if (!childArray.find((x) => x.props && x.props.name != name && !collapsedWidgets.includes(x.props.name))) return;
|
||||
|
||||
if (collapsedWidgets.includes(name)) setCollapsedWidgets(collapsedWidgets.filter((x) => x != name));
|
||||
else setCollapsedWidgets([...collapsedWidgets, name]);
|
||||
|
Loading…
Reference in New Issue
Block a user