check if modal children is aray

This commit is contained in:
Peter Makra 2022-12-14 15:48:48 +01:00
parent baf59c73ac
commit 7e805662d1
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ export const Modal = styled(({ style, children, ...props }) => {
{...props}
>
<ScrollableFlex flexDirection="column" width="100%" height="90%">
{...children}
{children.length ? children.map((c: any) => <>{c}</>) : children}
</ScrollableFlex>
</ModalBase>
);

View File

@ -29,7 +29,7 @@ import { delay, getConfig } from '../shared/utils';
import * as settings from './app/models/settings';
import { logException } from './app/modules/analytics';
import { buildWindowMenu } from './menu';
import i18n from 'i18next';
import * as i18n from 'i18next';
const customProtocol = 'etcher';
const scheme = `${customProtocol}://`;