Skip to content

Commit

Permalink
fix: file size problem of explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
XZB-1248 committed May 10, 2022
1 parent f65307a commit 9e559c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/components/explorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ function FileBrowser(props) {
dataIndex: 'size',
ellipsis: true,
width: 60,
renderText: (size, file) => file.type === 0 || size > 0 ? formatSize(size) : '-'
// only display file size when it is a file or disk
renderText: (size, file) => file.type !== 1 ? formatSize(size) : '-'
},
{
key: 'Time',
Expand Down

0 comments on commit 9e559c0

Please sign in to comment.