Fix: A pipeline created from a template fails immediately upon execution with a "hierarchy does not exist" error. (#16151)

### What problem does this PR solve?

Fix: A pipeline created from a template fails immediately upon execution
with a "hierarchy does not exist" error.
This commit is contained in:
balibabu
2026-06-17 19:07:04 +08:00
committed by GitHub
parent a5cce29f22
commit cf7b06c0f3
2 changed files with 3 additions and 2 deletions

View File

@@ -71,6 +71,7 @@ export enum TitleChunkerRulesField {
export type TitleChunkerFormSchemaType = z.infer<typeof FormSchema> & {
rules: z.infer<typeof rulesSchema>;
hierarchy: string;
};
type LevelItemProps = {

View File

@@ -364,9 +364,9 @@ function transformTitleChunkerParams(params: TitleChunkerFormSchemaType) {
);
const hierarchyValue =
params.method === TitleChunkerMethod.Group
(params.method === TitleChunkerMethod.Group
? params.hierarchyGroup
: params.hierarchyHierarchy;
: params.hierarchyHierarchy) ?? params.hierarchy;
return {
...omit(params, [