mirror of https://github.com/logseq/logseq
fix: table v2 properties take effect
parent
400fcdc8ef
commit
46149a22d9
|
@ -295,9 +295,14 @@
|
|||
table-version (get-shui-component-version :table config)]
|
||||
(case table-version
|
||||
2 (let [v2-columns (mapv #(if (uuid? %) (pu/get-property-name %) %) columns)
|
||||
v2-config (assoc-in config [:block :properties]
|
||||
(update-keys (get-in config [:block :block/properties])
|
||||
#(-> (db/entity (state/get-current-repo) [:block/uuid %])
|
||||
:block/name
|
||||
keyword)))
|
||||
result-as-text (for [row result]
|
||||
(for [column columns]
|
||||
(build-column-text row column)))]
|
||||
(shui/table-v2 {:data (conj [[v2-columns]] result-as-text)}
|
||||
(make-shui-context config inline)))
|
||||
(make-shui-context v2-config inline)))
|
||||
1 (result-table-v1 config current-block sort-result sort-state columns options map-inline page-cp ->elem inline-text)))))
|
||||
|
|
Loading…
Reference in New Issue