Просмотр исходного кода

enhance(plugin): support right sidebar item type as string

charlie 2 лет назад
Родитель
Сommit
7cc1c5aa5c
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/main/frontend/components/right_sidebar.cljs

+ 1 - 1
src/main/frontend/components/right_sidebar.cljs

@@ -114,7 +114,7 @@
 
 (defn build-sidebar-item
   [repo idx db-id block-type]
-  (case block-type
+  (case (keyword block-type)
     :contents
     [(t :right-side-bar/contents)
      (contents)]