Browse code

Add indexing to license information

Joseph Weston authored on 05/12/2021 20:17:34
Showing 1 changed files
... ...
@@ -129,8 +129,12 @@
129 129
      [:h1 (license :license-name)]
130 130
      [:p (license :preamble)]
131 131
      [:ol.clauses
132
-       (for [clause (license :clauses)] [:li clause])]
133
-     [:div.copyright-notice (->> license :copyright-notice (map #(vector :p %)))]])
132
+       (for [[index clause] (enumerated (license :clauses))]
133
+          ^{:key index}
134
+           [:li clause])]
135
+     [:div.copyright-notice
136
+       (for [[index text] (license :copyright-notice)]
137
+         ^{:key index} [:p text])]])
134 138
 
135 139
 (defn spell-panel [spell]
136 140
       [:article {:class (styles/spell-panel)}