Fix inability to click node in catalog, a Svelte 5 regression
Closes #3693
This commit is contained in:
parent
84e9d8c192
commit
ea293575e0
|
|
@ -21,14 +21,15 @@
|
|||
let nodeSearchInput: TextInput | undefined = undefined;
|
||||
let searchTerm = initialSearchTerm;
|
||||
|
||||
$: nodeCategories = buildNodeCategories($nodeGraph.nodeTypes, searchTerm);
|
||||
$: nodeCategories = buildNodeCategories(searchTerm);
|
||||
|
||||
type NodeCategoryDetails = {
|
||||
nodes: FrontendNodeType[];
|
||||
open: boolean;
|
||||
};
|
||||
|
||||
function buildNodeCategories(nodeTypes: FrontendNodeType[], searchTerm: string): [string, NodeCategoryDetails][] {
|
||||
function buildNodeCategories(searchTerm: string): [string, NodeCategoryDetails][] {
|
||||
const nodeTypes = $nodeGraph.nodeTypes;
|
||||
const categories = new SvelteMap<string, NodeCategoryDetails>();
|
||||
const isTypeSearch = searchTerm.toLowerCase().startsWith("type:");
|
||||
let typeSearchTerm = "";
|
||||
|
|
|
|||
Loading…
Reference in New Issue