fix(editor): Search by node name (no-changelog) (#17831)

This commit is contained in:
Romeo Balta
2025-08-01 09:00:06 +01:00
committed by GitHub
parent c2c3e08cdf
commit 491f2fa84d
2 changed files with 14 additions and 11 deletions

View File

@@ -114,6 +114,7 @@ export interface ITemplatesQuery {
categories: string[];
search: string;
apps?: string[];
nodes?: string[];
sort?: string;
combineWith?: string;
}
@@ -160,6 +161,7 @@ export async function getWorkflows(
search: string;
sort?: string;
apps?: string[];
nodes?: string[];
combineWith?: string;
},
headers?: RawAxiosRequestHeaders,
@@ -168,11 +170,12 @@ export async function getWorkflows(
workflows: ITemplatesWorkflow[];
filters: TemplateSearchFacet[];
}> {
const { apps, sort, combineWith, categories, ...restQuery } = query;
const { apps, sort, combineWith, categories, nodes, ...restQuery } = query;
const finalQuery = {
...restQuery,
category: stringifyArray(categories),
...(apps && { app: stringifyArray(apps) }),
...(apps && { apps: stringifyArray(apps) }),
...(nodes && { nodes: stringifyArray(nodes) }),
...(sort && { sort }),
...(combineWith && { combineWith }),
};