@octaviaflow/core 3.1.0-beta.56 → 3.1.0-beta.57

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.
package/dist/index.js CHANGED
@@ -17648,10 +17648,8 @@ function FilePicker({
17648
17648
  const isSearching = searchable && query.trim().length > 0;
17649
17649
  const items = useMemo23(() => {
17650
17650
  if (isSearching) return search?.results ?? [];
17651
- let list = rawItems;
17652
- if (selectMode === "folder") list = list.filter((it) => it.isDirectory);
17653
- return [...list].sort(folderFirstThenName);
17654
- }, [isSearching, search, rawItems, selectMode]);
17651
+ return [...rawItems].sort(folderFirstThenName);
17652
+ }, [isSearching, search, rawItems]);
17655
17653
  const crumbs = useMemo23(() => {
17656
17654
  const chain = ancestorsOf(navPath, rootPath, separator);
17657
17655
  return chain.map((p, i) => ({ path: p, label: i === 0 ? rootLabel : baseName(p, separator) }));