Update ShouldRunNext and GenericNode components
This commit is contained in:
parent
b450e66046
commit
6ab07d7ca3
3 changed files with 8 additions and 13 deletions
|
|
@ -716,13 +716,13 @@ export default function GenericNode({
|
|||
</div>
|
||||
<div>
|
||||
{data.node!.base_classes.length > 0 &&
|
||||
// if conditionalPaths in data.node.conditionalPaths
|
||||
// if conditional_paths in data.node.conditional_paths
|
||||
// then buildParameterComponent for each conditionalPath
|
||||
// else buildParameterComponent for each data.node.base_classes
|
||||
// first we check
|
||||
data.node!.conditionalPaths &&
|
||||
data.node!.conditionalPaths.length > 1
|
||||
? data.node!.conditionalPaths.map((conditionalPath) =>
|
||||
// first we check if there are any conditional paths
|
||||
data.node!.conditional_paths &&
|
||||
data.node!.conditional_paths.length > 0
|
||||
? data.node!.conditional_paths.map((conditionalPath) =>
|
||||
buildParameterComponent({
|
||||
data,
|
||||
conditionalPath,
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ export type APIClassType = {
|
|||
icon?: string;
|
||||
is_input?: boolean;
|
||||
is_output?: boolean;
|
||||
conditionalPaths?: Array<string>;
|
||||
conditional_paths?: Array<string>;
|
||||
input_types?: Array<string>;
|
||||
output_types?: Array<string>;
|
||||
custom_fields?: CustomFieldsType;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue