瀏覽代碼

fix: query-table toggle not working for file graphs

Gabriel Horner 1 年之前
父節點
當前提交
e7d7e55b28
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/frontend/components/query.cljs

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

@@ -160,7 +160,7 @@
                        collapsed?
                        collapsed?
                        (:block/collapsed? current-block)))
                        (:block/collapsed? current-block)))
         built-in-collapsed? (and collapsed? built-in?)
         built-in-collapsed? (and collapsed? built-in?)
-        query-table? (get current-block (pu/get-pid :logseq.property/query-table))
+        query-table? (pu/get-block-property-value current-block :logseq.property/query-table)
         table? (or table-view?
         table? (or table-view?
                    query-table?
                    query-table?
                    (and (string? query) (string/ends-with? (string/trim query) "table")))
                    (and (string? query) (string/ends-with? (string/trim query) "table")))