소스 검색

fix: render+play audio link in db graphs

Gabriel Horner 1 년 전
부모
커밋
db5e5be383
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/main/frontend/components/block.cljs

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

@@ -1064,7 +1064,8 @@
 (rum/defc audio-link
   [config url href _label metadata full_text]
   (if (and (common-config/local-asset? href)
-           (config/local-file-based-graph? (state/get-current-repo)))
+           (or (config/local-file-based-graph? (state/get-current-repo))
+               (config/db-based-graph? (state/get-current-repo))))
     (asset-link config nil href metadata full_text)
     (let [href (cond
                  (util/starts-with? href "http")