Browse Source

fix: move key

Yue Yang 3 years ago
parent
commit
a6f8584fac
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/frontend/components/plugins.cljs

+ 2 - 2
src/main/frontend/components/plugins.cljs

@@ -81,10 +81,10 @@
               group-first?      (:group-first opt)
               plg               (get (:plugin/installed-plugins @state/state) (keyword (:pid opt)))]
           [:div
+           {:key (str idx (:name opt))}
            (when (and group-first? (not= idx 0)) [:hr.my-2])
            [:div.it.flex.px-3.py-1.5.rounded-sm.justify-between
-            {:key      (str idx (:url opt))
-             :title    (:description opt)
+            {:title    (:description opt)
              :class    (util/classnames
                         [{:is-selected current-selected?
                           :is-active   (= idx @*cursor)}])