浏览代码

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))))