Skip to content

Commit

Permalink
arraymapping fix
Browse files Browse the repository at this point in the history
  • Loading branch information
simon louvet committed Jun 4, 2024
1 parent 1205426 commit 3aba26d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions core/lib/fragment_lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ module.exports = {
}else{
dfobTableCurrent=[];
}
console.log('____relativHistoryTableCopy 1',relativHistoryTableCopy)
// console.log('____relativHistoryTableCopy 1',relativHistoryTableCopy)
if (data[key] && data[key] != null && data[key]._frag) {
if(dfobTableCurrent.length>0){
const persitedFrag = await this.copyFragUntilPath(data[key]._frag, dfobTableCopy, keepArray, [], callerFrag)
Expand Down Expand Up @@ -680,9 +680,9 @@ module.exports = {
// console.log('___________processedData',data);
}
// console.log('_____ return data',JSON.stringify(data));
console.log('_____________________________relativHistoryTableSelected',relativHistoryTableSelected)
// console.log('_____________________________relativHistoryTableSelected',relativHistoryTableSelected)
// console.log('_____________________________dfobTableCopy',dfobTableCopy)
console.log('_____________________________dfobTable',dfobTable)
// console.log('_____________________________dfobTable',dfobTable)
return {
data,
relativHistoryTableSelected : relativHistoryTableSelected,
Expand Down
2 changes: 1 addition & 1 deletion engine/services/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ class Engine {
keepArray
)

console.log('__dfobFragmentFlow',dfobFragmentFlow.dfobFragmentSelected)
// console.log('__dfobFragmentFlow',dfobFragmentFlow.dfobFragmentSelected)

const newFrag = dfobFragmentFlow.newFrag;
let dfobFragmentSelected = dfobFragmentFlow.dfobFragmentSelected;
Expand Down
5 changes: 4 additions & 1 deletion engine/workspaceComponentExecutor/valueMapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ class ValueMapping {
}
} else {

const result = this.mapValue(source, specificData,secondaryFlow);
let result = this.mapValue(source, specificData,secondaryFlow);
if(result.length===1){
result=result[0];
}
// console.log('result',result);
return {
data: result
Expand Down

0 comments on commit 3aba26d

Please sign in to comment.