mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 04:50:36 +03:00
Cleanup logging
This commit is contained in:
parent
cac74272f2
commit
91c318f36a
|
@ -9,7 +9,7 @@ interface BackendErrorProps {
|
|||
}
|
||||
|
||||
function DescribeError(error: ErrorInfo) {
|
||||
console.log(error);
|
||||
reportError(error);
|
||||
if (!error) {
|
||||
return <p>Ошибки отсутствуют</p>;
|
||||
} else if (typeof error === 'string') {
|
||||
|
|
|
@ -7,7 +7,6 @@ interface EmbedYoutubeProps {
|
|||
function EmbedYoutube({ videoID, pxHeight, pxWidth }: EmbedYoutubeProps) {
|
||||
if (!pxWidth) {
|
||||
pxWidth = pxHeight * 16 / 9;
|
||||
console.log(pxWidth);
|
||||
}
|
||||
return (
|
||||
<div
|
||||
|
|
|
@ -3,7 +3,7 @@ import { type FallbackProps } from 'react-error-boundary';
|
|||
import Button from './Common/Button';
|
||||
|
||||
function ErrorFallback({ error, resetErrorBoundary }: FallbackProps) {
|
||||
console.log(error);
|
||||
reportError(error);
|
||||
return (
|
||||
<div className='flex flex-col items-center antialiased clr-app' role='alert'>
|
||||
<h1 className='text-lg font-semibold'>Something went wrong!</h1>
|
||||
|
|
|
@ -9,7 +9,6 @@ import { getCstExpressionPrefix } from '../utils/staticUI';
|
|||
const LOGIC_TYPIIFCATION = 'LOGIC';
|
||||
|
||||
function checkTypeConsistency(type: CstType, typification: string, args: IFunctionArg[]): boolean {
|
||||
console.log(typification)
|
||||
switch (type) {
|
||||
case CstType.BASE:
|
||||
case CstType.CONSTANT:
|
||||
|
|
Loading…
Reference in New Issue
Block a user