Skip to content

Commit 49520cc

Browse files
committed
address comments
1 parent acdc6d0 commit 49520cc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/platform/plugins/shared/workflows_management/public/entities/workflows/store/workflow_detail/utils

src/platform/plugins/shared/workflows_management/public/entities/workflows/store/workflow_detail/utils/build_workflow_lookup.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export interface StepInfo {
2626
export interface StepPropInfo {
2727
path: string[];
2828
keyNode: YAML.Scalar<unknown>;
29-
/** Value node: always a scalar (leaf property). Intermediate map nodes are not recorded in propInfos. */
29+
/** Value node: typically a scalar, but can be a sequence (array) at runtime. Intermediate map nodes are not recorded in propInfos. */
3030
valueNode: YAML.Scalar<unknown>;
3131
}
3232

@@ -36,7 +36,7 @@ export interface StepPropInfo {
3636
* (returns the JSON representation via `.toJSON()`).
3737
*/
3838
export function getValueFromValueNode(
39-
valueNode: YAML.Scalar<unknown> | YAML.YAMLMap<unknown, unknown>
39+
valueNode: YAML.Scalar<unknown> | YAML.YAMLSeq<unknown>
4040
): unknown {
4141
if (!valueNode) return undefined;
4242
if (YAML.isScalar(valueNode)) return valueNode.value;

0 commit comments

Comments
 (0)