fix(core-app): CB-1848 folders auto expand

This commit is contained in:
Wroud
2022-04-04 18:37:51 +03:00
parent e3eeaf11f5
commit 28fbb9eeaf
@@ -103,7 +103,7 @@ export const ElementsTree = observer<Props>(function ElementsTree({
const autoOpenFolders = useCallback(async function autoOpenFolders(nodeId: string, path: string[]) {
path = [...path];
if (!ref.settings?.foldersTree) {
if (!ref.settings?.foldersTree && !folderExplorer.options.expandFoldersWithSingleElement) {
return;
}