Преглед изворни кода

fix: builder shouldn't fail on handwritten

Gabriel Horner пре 1 година
родитељ
комит
698245ede0
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/main/frontend/components/query/builder.cljs

+ 1 - 1
src/main/frontend/components/query/builder.cljs

@@ -379,7 +379,7 @@
       (str (if (and (config/db-based-graph? (state/get-current-repo))
                     (qualified-keyword? (second clause)))
              (:block/title (db/entity (second clause)))
-             (name (second clause)))
+             (some-> (second clause) name))
            ": "
            (cond
              (and (vector? (last clause)) (= :page-ref (first (last clause))))