From 8e83b97b02ae678fe79b0dc0986be557943caff9 Mon Sep 17 00:00:00 2001 From: Valentin Palkovic Date: Wed, 4 Oct 2023 15:47:07 +0200 Subject: [PATCH] Fix types --- code/frameworks/angular/src/builders/utils/error-handler.ts | 2 +- code/ui/components/src/components/Zoom/ZoomIFrame.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/frameworks/angular/src/builders/utils/error-handler.ts b/code/frameworks/angular/src/builders/utils/error-handler.ts index 2673dbfd0b87..f2ff150495cf 100644 --- a/code/frameworks/angular/src/builders/utils/error-handler.ts +++ b/code/frameworks/angular/src/builders/utils/error-handler.ts @@ -12,7 +12,7 @@ export const printErrorDetails = (error: any): void => { } else if ((error as any).stats && (error as any).stats.compilation.errors) { (error as any).stats.compilation.errors.forEach((e: any) => logger.plain(e)); } else { - logger.error(error); + logger.error(error as any); } } else if (error.compilation?.errors) { error.compilation.errors.forEach((e: any) => logger.plain(e)); diff --git a/code/ui/components/src/components/Zoom/ZoomIFrame.tsx b/code/ui/components/src/components/Zoom/ZoomIFrame.tsx index 3101364bd861..509ef5ce4d85 100644 --- a/code/ui/components/src/components/Zoom/ZoomIFrame.tsx +++ b/code/ui/components/src/components/Zoom/ZoomIFrame.tsx @@ -1,5 +1,5 @@ import type { RefObject, ReactElement } from 'react'; -import { Component } from 'react'; +import React, { Component } from 'react'; export type IZoomIFrameProps = { scale: number; @@ -57,6 +57,6 @@ export class ZoomIFrame extends Component { render() { const { children } = this.props; - return children; + return <>{children}; } }