Skip to content

Commit

Permalink
PATCH: fix(file-icon): ignore extension case (#178)
Browse files Browse the repository at this point in the history
Co-authored-by: NicolasRichel <nicolas@bimdata.io>
  • Loading branch information
NicolasRichel and NicolasRichel authored Mar 4, 2022
1 parent 2b984de commit cc6c1ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/BIMDataComponents/BIMDataFileIcon/BIMDataFileIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default {
},
computed: {
name() {
return this.getFileExtension(this.fileName) || "unknown";
return (this.getFileExtension(this.fileName) || "unknown").toLowerCase();
},
imageUrl() {
return icons[`icon_${this.name}`] || icons.icon_unknown;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<BIMDataIcon name="folder" size="xl" fill color="primary" />
</template>
<template v-else>
<BIMDataFileIcon :fileName="file.name" :size="25" />
<BIMDataFileIcon :fileName="file.fileName" :size="25" />
</template>
</div>
<div
Expand Down

0 comments on commit cc6c1ad

Please sign in to comment.