{this.props.currentRepoInfo.status === 'read-only' &&
@@ -253,7 +252,6 @@ class LibContentContainer extends React.Component {
{!this.props.pathExist && this.errMessage}
{this.props.pathExist && (
@@ -335,7 +333,7 @@ class LibContentContainer extends React.Component {
)}
-
+
);
}
}
diff --git a/frontend/src/utils/utils.js b/frontend/src/utils/utils.js
index bbd5951ab00..9abb6dd03fb 100644
--- a/frontend/src/utils/utils.js
+++ b/frontend/src/utils/utils.js
@@ -391,6 +391,7 @@ export const Utils = {
},
getDirentIcon: function (dirent, isBig) {
+ if (!dirent) return mediaUrl + 'img/file/256/' + this.FILEEXT_ICON_MAP['default'];
let size = this.isHiDPI() ? 48 : 24;
size = isBig ? 192 : size;
if (dirent.isDir()) {