From c8a02a08121cc7fd4a44a2a020f8373a90bdefc2 Mon Sep 17 00:00:00 2001 From: Matthias Mohr Date: Thu, 9 Jan 2025 18:16:16 +0100 Subject: [PATCH] Asset keys with spaces can be expanded #528 --- src/components/Asset.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Asset.vue b/src/components/Asset.vue index 6a22ffb8c..03015534f 100644 --- a/src/components/Asset.vue +++ b/src/components/Asset.vue @@ -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]/, '-')}`; }, fileFormat() { if (typeof this.asset.type === "string" && this.asset.type.length > 0) {