Skip to content

Commit

Permalink
fix saving properties for scenarios with fragments (TouK#2045) (TouK#…
Browse files Browse the repository at this point in the history
…2168)

Co-authored-by: Krzysztof Gadomski <kgd@touk.pl>
  • Loading branch information
dswiecki and gadomsky committed Sep 13, 2021
1 parent 1781a42 commit 78df2c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/client/components/graph/SubprocessSchemaAligner.js
Expand Up @@ -3,7 +3,7 @@ import fp from "lodash/fp"
export function alignSubprocessWithSchema(processDefinitionData, subprocessNode) {
const subprocessId = subprocessNode.ref.id
const subprocessSchema = processDefinitionData.nodesToAdd
.find((nodesToAdd) => {return nodesToAdd.name === "subprocesses"}).possibleNodes
.find((nodesToAdd) => {return nodesToAdd.name === "fragments"}).possibleNodes
.find((obj) => obj.node.ref.id === subprocessId)
const subprocessSchemaParameters = subprocessSchema.node.ref.parameters
const mergedParameters = subprocessSchemaParameters
Expand Down
2 changes: 1 addition & 1 deletion ui/client/test/SubprocessSchemaAligner-test.js
Expand Up @@ -4,7 +4,7 @@ import _ from 'lodash'
const subprocessProcessDefinitionData = {
nodesToAdd: [
{
name: "subprocesses",
name: "fragments",
possibleNodes: [
{
type: "subprocess", label: "subproc1", node: {
Expand Down

0 comments on commit 78df2c3

Please sign in to comment.