Skip to content

Commit bab068a

Browse files
committed
fix: add warning on excalidraw
1 parent cf7e51a commit bab068a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/frontend/components/block.cljs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1130,7 +1130,9 @@
11301130
(and (string? uuid-or-title) (string/ends-with? uuid-or-title ".excalidraw"))
11311131
[:div.draw {:on-click (fn [e]
11321132
(.stopPropagation e))}
1133-
(excalidraw uuid-or-title (:block/uuid config))]
1133+
(if (config/db-based-graph?)
1134+
[:div.warning "Excalidraw is no longer supported by default, we plan to support it through plugins."]
1135+
(excalidraw uuid-or-title (:block/uuid config)))]
11341136

11351137
:else
11361138
(let [blank-title? (string/blank? (:block/title block))]

0 commit comments

Comments
 (0)