From 4cd8f76d7cc0e142409459d63455c5b7d3d6c9e3 Mon Sep 17 00:00:00 2001 From: Eric NGUYEN Date: Wed, 31 Aug 2022 11:35:24 +0200 Subject: [PATCH] Hide console.warn --- src/Components/App/Actions/MenuActions.ts | 2 +- src/Components/Editor/Behaviors/RigidBodyBehaviors.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/App/Actions/MenuActions.ts b/src/Components/App/Actions/MenuActions.ts index 6bbf751..9d074f6 100644 --- a/src/Components/App/Actions/MenuActions.ts +++ b/src/Components/App/Actions/MenuActions.ts @@ -18,7 +18,7 @@ export function NewEditor( setEditorState(editorState); setLoaded(true); }, (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); }); } diff --git a/src/Components/Editor/Behaviors/RigidBodyBehaviors.ts b/src/Components/Editor/Behaviors/RigidBodyBehaviors.ts index 46a973f..bdf2e71 100644 --- a/src/Components/Editor/Behaviors/RigidBodyBehaviors.ts +++ b/src/Components/Editor/Behaviors/RigidBodyBehaviors.ts @@ -174,7 +174,7 @@ export function ConstraintBodyInsideUnallocatedWidth( }); 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({ // position: 'top-end', // title: `Container ${container.properties.id} cannot fit!`,