Hide console.warn

This commit is contained in:
Eric NGUYEN 2022-08-31 11:35:24 +02:00
parent 35e9421ae8
commit 4cd8f76d7c
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ export function NewEditor(
setEditorState(editorState); setEditorState(editorState);
setLoaded(true); setLoaded(true);
}, (error) => { }, (error) => {
console.warn('[NewEditor] Could not fetch resource from API. Using default.', error); console.debug('[NewEditor] Could not fetch resource from API. Using default.', error);
setLoaded(true); setLoaded(true);
}); });
} }

View file

@ -174,7 +174,7 @@ export function ConstraintBodyInsideUnallocatedWidth(
}); });
if (availableWidth === undefined) { if (availableWidth === undefined) {
console.warn(`Container ${container.properties.id} cannot fit in any space due to its minimum width being to large. Consequently, its rigid body property is disabled.`); console.debug(`Container ${container.properties.id} cannot fit in any space due to its minimum width being to large.`);
// Swal.fire({ // Swal.fire({
// position: 'top-end', // position: 'top-end',
// title: `Container ${container.properties.id} cannot fit!`, // title: `Container ${container.properties.id} cannot fit!`,