Browse Source

fix: file name and link disappears in preview during upload https://github.com/logseq/db-test/issues/102

charlie 1 year ago
parent
commit
46dd9e3550
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/frontend/components/block.cljs

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

@@ -1274,7 +1274,7 @@
     (show-link? config metadata s full_text)
     (media-link config url s label metadata full_text)
 
-    (util/electron?)
+    (or (util/electron?) (config/db-based-graph? (state/get-current-repo)))
     (let [path (cond
                  (string/starts-with? s "file://")
                  (string/replace s "file://" "")