Skip to content

Commit ed67367

Browse files
committed
revert logging
1 parent 67ae3de commit ed67367

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

packages/core/src/reducers/core.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -336,23 +336,19 @@ export const errorsAt = (
336336
schema: JsonSchema,
337337
matchPath: (path: string[]) => boolean
338338
) => (errors: ErrorObject[]): ErrorObject[] => {
339-
console.log("errors: ",errors);
340339
// Get data paths of oneOf and anyOf errors to later determine whether an error occurred inside a subschema of oneOf or anyOf.
341340
const combinatorPaths = filter(
342341
errors,
343342
error => error.keyword === 'oneOf' || error.keyword === 'anyOf'
344343
).map(error => getControlPath(error));
345344

346345
return filter(errors, error => {
347-
348346
// Filter errors that match any keyword that we don't want to show in the UI
349347
if (filteredErrorKeywords.indexOf(error.keyword) !== -1) {
350348
return false;
351349
}
352350
const controlPath = getControlPath(error);
353-
console.log("controllpath: ", controlPath);
354351
let result = matchPath(controlPath);
355-
console.log("result: ",result);
356352
// In anyOf and oneOf blocks with "primitive" (i.e. string, number etc.) or array subschemas,
357353
// we want to make sure that errors are only shown for the correct subschema.
358354
// Therefore, we compare the error's parent schema with the property's schema.
@@ -366,7 +362,6 @@ export const errorsAt = (
366362
&& combinatorPaths.findIndex(p => contains(instancePath,p)) !== -1) {
367363
result = result && isEqual(parentSchema, schema);
368364
}
369-
console.log(result);
370365
return result;
371366
});
372367
};

packages/core/src/util/path.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ export const toId = (path: string[]): string=>{
9090
}
9191

9292
export const contains = (path1: string[], path2: string[]):boolean =>{
93-
console.log("contains");
9493
if(path1.length<path2.length){
9594
return false;
9695
}
@@ -99,6 +98,5 @@ export const contains = (path1: string[], path2: string[]):boolean =>{
9998
return false;
10099
}
101100
})
102-
console.log("true");
103101
return true;
104102
}

packages/material/src/complex/MaterialTableControl.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ const ctxToNonEmptyCellProps = (
170170
if(ownProps.schema.type === 'object'){
171171
path.push(ownProps.propName);
172172
}
173-
console.log(ctx.core.errors);
173+
174174
const errors = formatErrorMessage(
175175
union(
176176
errorsAt(
@@ -181,7 +181,6 @@ const ctxToNonEmptyCellProps = (
181181
)(ctx.core.errors).map((error: ErrorObject) => error.message)
182182
)
183183
);
184-
console.log("errores: ",errors);
185184
return {
186185
rowPath: ownProps.rowPath,
187186
propName: ownProps.propName,
@@ -214,7 +213,6 @@ const NonEmptyCell = (ownProps: OwnPropsOfNonEmptyCell) => {
214213
cells
215214
} = ctxToNonEmptyCellProps(ctx, ownProps);
216215

217-
console.log("errors: ",errors);
218216
const isValid = isEmpty(errors);
219217
return (
220218
<NoBorderTableCell>
@@ -408,7 +406,6 @@ export class MaterialTableControl extends React.Component<
408406
? generateCells(TableHeaderCell, schema, path, enabled, cells)
409407
: undefined;
410408
console.log("here");
411-
console.log("errors: ",errors);
412409

413410
return (
414411
<Hidden xsUp={!visible}>

0 commit comments

Comments
 (0)