Browse Source

fix: set file id as fallback name

Ifedapo Olarewaju 7 years ago
parent
commit
589b3b3d3f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/generic-provider-views/index.js

+ 1 - 1
src/generic-provider-views/index.js

@@ -128,7 +128,7 @@ module.exports = class View {
     const tagFile = {
       source: this.plugin.id,
       data: this.plugin.getItemData(file),
-      name: this.plugin.getItemName(file),
+      name: this.plugin.getItemName(file) || this.plugin.getItemId(file),
       type: this.plugin.getMimeType(file),
       isRemote: true,
       body: {