Skip to content

Commit

Permalink
Asset keys with spaces can be expanded #528
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Jan 9, 2025
1 parent 6da1c36 commit 61a17be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Asset.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default {
return this.definition ? 'itemdef' : 'asset';
},
uid() {
return `${this.type}-${this.id}`;
return `${this.type}-${this.id.toLowerCase().replace(/[^\w]/g, '-')}`;
},
fileFormat() {
if (typeof this.asset.type === "string" && this.asset.type.length > 0) {
Expand Down

0 comments on commit 61a17be

Please sign in to comment.