Skip to content

Commit c6b1853

Browse files
committed
fixup! Fallback to directory icon based on the mount type
1 parent 90d7fd7 commit c6b1853

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

core/js/dist/share_backend.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/js/dist/share_backend.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/js/share.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ OC.Share = _.extend(OC.Share || {}, {
275275
action.removeClass('shared-style');
276276
// update folder icon
277277
if (type === 'dir' && (hasShares || hasLink || ownerId)) {
278-
if (mountType !== 'shared-root' && mountType !== 'shared') {
278+
if (typeof mountType !== 'undefined' && mountType !== 'shared-root' && mountType !== 'shared') {
279279
shareFolderIcon = OC.MimeType.getIconUrl('dir-' + mountType);
280280
} else if (hasLink) {
281281
shareFolderIcon = OC.MimeType.getIconUrl('dir-public');

0 commit comments

Comments
 (0)