Skip to content

Commit

Permalink
removed console statements
Browse files Browse the repository at this point in the history
  • Loading branch information
John Teague committed May 14, 2024
1 parent 7ff457e commit 2825f3b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
4 changes: 0 additions & 4 deletions src/process/__tests__/process.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1050,8 +1050,6 @@ describe('Process Tests', () => {
submission.data = context.data;
context.processors = ProcessTargets.evaluator;
processSync(context);
console.log('errors:', context.scope.errors);

assert.equal(context.scope.errors.length, 0);
});
it('should remove submission data not in a nested form definition', async function () {
Expand Down Expand Up @@ -1116,8 +1114,6 @@ describe('Process Tests', () => {
}
};
processSync(context);


expect(context.data.child.data).to.not.have.property('invalid');


Expand Down
9 changes: 0 additions & 9 deletions src/process/filter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,25 +49,16 @@ export const filterProcess: ProcessorFn<FilterScope> = async (context: FilterCon
export const filterPostProcess: ProcessorFnSync<FilterScope> = (context: FilterContext) => {

const { scope, submission } = context;
console.log('filterPostProcess: context', Object.keys(context));
console.dir(context.components)

const filtered = {};
for (const path in scope.filter) {
console.log('filterPostProcess path:', path);
const pathFilter = scope.filter[path];
if (pathFilter) {

let value = get(submission?.data, path) as any;
console.log('path filter:', scope.filter[path]);
console.log('path value:', value);

// dataObject types (nested form) paths are recursively added to the scope.filter
// excluding those from this and setting their components onto the submission directly
if (pathFilter.compModelType !== 'dataObject') {
set(filtered, path, value);
} else {
console.log('skipping path:', path, 'value:', value)
}
}
}
Expand Down

0 comments on commit 2825f3b

Please sign in to comment.