Skip to content

Commit

Permalink
fix(all): New templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Rodriguez committed Aug 24, 2024
1 parent 3335d5d commit 7d80c25
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/basic.gblib/services/SystemKeywords.ts
Original file line number Diff line number Diff line change
Expand Up @@ -756,9 +756,6 @@ export class SystemKeywords {
let rowsDest = [];

rows.forEach(row => {
if (GBUtil.hasSubObject(row)) {
row = this.flattenJSON(row);
}

let dst = {};
let i = 0;
Expand All @@ -767,6 +764,11 @@ export class SystemKeywords {
dst[field] = row[column];
i++;
});

if (GBUtil.hasSubObject(dst)) {
dst = this.flattenJSON(dst);
}

rowsDest.push(dst);
dst = null;
});
Expand Down Expand Up @@ -801,8 +803,9 @@ export class SystemKeywords {

const definition = this.getTableFromName(table, min);

let dst = {};
// Uppercases fields.

let dst = {};
let i = 0;
Object.keys(fieldsValues).forEach(fieldSrc => {
const field = fieldsNames[i].charAt(0).toUpperCase() + fieldsNames[i].slice(1);
Expand Down

0 comments on commit 7d80c25

Please sign in to comment.