mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 14:18:04 +08:00
Fix inability to click node in catalog, a Svelte 5 regression
Closes #3693
This commit is contained in:
@@ -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 = "";
|
||||
|
||||
Reference in New Issue
Block a user