@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.cjs +2 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -17506,10 +17506,8 @@ function FilePicker({
|
|
|
17506
17506
|
const isSearching = searchable && query.trim().length > 0;
|
|
17507
17507
|
const items = (0, import_react89.useMemo)(() => {
|
|
17508
17508
|
if (isSearching) return search?.results ?? [];
|
|
17509
|
-
|
|
17510
|
-
|
|
17511
|
-
return [...list].sort(folderFirstThenName);
|
|
17512
|
-
}, [isSearching, search, rawItems, selectMode]);
|
|
17509
|
+
return [...rawItems].sort(folderFirstThenName);
|
|
17510
|
+
}, [isSearching, search, rawItems]);
|
|
17513
17511
|
const crumbs = (0, import_react89.useMemo)(() => {
|
|
17514
17512
|
const chain = ancestorsOf(navPath, rootPath, separator);
|
|
17515
17513
|
return chain.map((p, i) => ({ path: p, label: i === 0 ? rootLabel : baseName(p, separator) }));
|