Fix inability to click node in catalog, a Svelte 5 regression

Closes #3693
This commit is contained in:
Keavon Chambers 2026-01-27 15:25:56 -08:00
parent 84e9d8c192
commit ea293575e0
1 changed files with 3 additions and 2 deletions

View File

@ -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 = "";