memoize connection folder expand state #425

This commit is contained in:
Jan Prochazka
2023-01-01 12:24:42 +01:00
parent d5e240a701
commit 13fd7a0aad
4 changed files with 14 additions and 2 deletions

View File

@@ -15,6 +15,7 @@
openedSingleDatabaseConnections,
openedTabs,
emptyConnectionGroupNames,
collapsedConnectionGroupNames,
} from '../stores';
import runCommand from '../commands/runCommand';
import getConnectionLabel from '../utility/getConnectionLabel';
@@ -149,6 +150,7 @@
emptyGroupNames={$emptyConnectionGroupNames}
sortGroups
groupContextMenu={createGroupContextMenu}
collapsedGroupNames={collapsedConnectionGroupNames}
/>
{#if (connectionsWithParent?.length > 0 && connectionsWithoutParent?.length > 0) || ($emptyConnectionGroupNames.length > 0 && connectionsWithoutParent?.length > 0)}
<div class="br" />