Always expand folders when searching
parent
606bc19def
commit
4037f6bab1
|
@ -1,5 +1,5 @@
|
|||
import React from "react";
|
||||
import { Page, Col, Row, BlurableInput } from "../ui";
|
||||
import { BlurableInput } from "../ui";
|
||||
import { FolderUnion, RootFolderNode } from "./constants";
|
||||
import { Everything } from "../interfaces";
|
||||
import { connect } from "react-redux";
|
||||
|
|
|
@ -195,8 +195,18 @@ export const resourceReducer =
|
|||
input: payload,
|
||||
root: s.index.sequenceFolders.folders
|
||||
});
|
||||
const { localMetaAttributes } = s.index.sequenceFolders;
|
||||
Object /** Expand all folders when searching. */
|
||||
.keys(localMetaAttributes)
|
||||
.map(x => {
|
||||
s
|
||||
.index
|
||||
.sequenceFolders
|
||||
.localMetaAttributes[x as unknown as number]
|
||||
.open = true;
|
||||
});
|
||||
const nextFolder = ingest({
|
||||
localMetaAttributes: s.index.sequenceFolders.localMetaAttributes,
|
||||
localMetaAttributes,
|
||||
folders
|
||||
});
|
||||
s.index.sequenceFolders.filteredFolders = nextFolder;
|
||||
|
|
Loading…
Reference in New Issue