diff --git a/src/renderer/component/common/file-selector.jsx b/src/renderer/component/common/file-selector.jsx index ec19394e1..3729202d0 100644 --- a/src/renderer/component/common/file-selector.jsx +++ b/src/renderer/component/common/file-selector.jsx @@ -9,7 +9,7 @@ type Props = { type: string, currentPath: ?string, onFileChosen: (string, string) => void, - fileLabel: ?string, + fileLabel?: string, directoryLabel?: string, }; @@ -56,7 +56,7 @@ class FileSelector extends React.PureComponent { type === 'file' ? fileLabel || __('Choose File') : directoryLabel || __('Choose Directory'); return ( - +