소스 검색

fix: remove non-shapes from whiteboard blocks

Tienson Qin 1 년 전
부모
커밋
9c48753eaf
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/frontend/handler/whiteboard.cljs

+ 1 - 1
src/main/frontend/handler/whiteboard.cljs

@@ -46,7 +46,7 @@
 
 (defn- whiteboard-clj->tldr [page-block blocks]
   (let [id (str (:block/uuid page-block))
-        shapes (build-shapes blocks)
+        shapes (remove #(nil? (:type %)) (build-shapes blocks))
         tldr-page (pu/page-block->tldr-page page-block)
         assets (:assets tldr-page)
         tldr-page (dissoc tldr-page :assets)]