fix: tree data should be optional for file explorer

This commit is contained in:
EnixCoda 2019-02-21 18:41:36 +08:00
parent 1043c0dfd4
commit b4ae8d2ad0
No known key found for this signature in database
GPG key ID: 6825847C88AA329A
2 changed files with 2 additions and 3 deletions

View file

@ -11,7 +11,7 @@ import { VisibleNodes, TreeNode } from 'utils/VisibleNodesGenerator'
import Icon from './Icon'
export type Props = {
treeData: TreeData
treeData?: TreeData
metaData: MetaData
freeze: boolean
compressSingletonFolder: boolean

View file

@ -76,8 +76,7 @@ class Gitako extends React.PureComponent<Props & ConnectorState> {
{metaData && <MetaBar metaData={metaData} />}
{errorDueToAuth
? this.renderAccessDeniedError()
: metaData &&
treeData && (
: metaData && (
<FileExplorer
compressSingletonFolder={compressSingletonFolder}
toggleShowSettings={toggleShowSettings}