mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 15:27:17 +00:00
check if modal children is aray
This commit is contained in:
parent
baf59c73ac
commit
7e805662d1
@ -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>
|
||||
);
|
||||
|
@ -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}://`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user