@lvce-editor/explorer-view 5.19.0 → 5.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2270,14 +2270,12 @@ const toCollapsedDirent = dirent => {
|
|
|
2270
2270
|
|
|
2271
2271
|
const collapseAll = async state => {
|
|
2272
2272
|
const {
|
|
2273
|
-
focusedIndex,
|
|
2274
2273
|
items
|
|
2275
2274
|
} = state;
|
|
2276
2275
|
const newDirents = items.filter(isTopLevel).map(toCollapsedDirent);
|
|
2277
|
-
const newFocusedIndex = getFocusedIndexCancel(newDirents, focusedIndex);
|
|
2278
2276
|
return {
|
|
2279
2277
|
...state,
|
|
2280
|
-
focusedIndex:
|
|
2278
|
+
focusedIndex: 0,
|
|
2281
2279
|
items: newDirents
|
|
2282
2280
|
};
|
|
2283
2281
|
};
|