« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/util/html.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/util/html.js b/src/util/html.js
index 9221256d..b5f6e70f 100644
--- a/src/util/html.js
+++ b/src/util/html.js
@@ -1228,11 +1228,12 @@ export class Template {
         return blankAttributes();
       }
 
-      if (
-        providedValue instanceof Attributes &&
-        description.mutable
-      ) {
-        return providedValue.clone();
+      if (providedValue instanceof Attributes) {
+        if (description.mutable) {
+          return providedValue.clone();
+        } else {
+          return providedValue;
+        }
       }
 
       return new Attributes(providedValue);