From 5654c312b1f2c40e8b46592606b57ec636c469c3 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 11 Oct 2022 21:47:39 -0400 Subject: [PATCH] Remove TLDraw from embed menu as it no longer supports embedding --- app/editor/components/CommandMenu.tsx | 2 +- shared/editor/embeds/index.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/editor/components/CommandMenu.tsx b/app/editor/components/CommandMenu.tsx index af7881951..70b60f1df 100644 --- a/app/editor/components/CommandMenu.tsx +++ b/app/editor/components/CommandMenu.tsx @@ -427,7 +427,7 @@ class CommandMenu extends React.Component, State> { const embedItems: EmbedDescriptor[] = []; for (const embed of embeds) { - if (embed.title) { + if (embed.title && embed.visible !== false) { embedItems.push( new EmbedDescriptor({ ...embed, diff --git a/shared/editor/embeds/index.tsx b/shared/editor/embeds/index.tsx index 5b8b6472b..33c648230 100644 --- a/shared/editor/embeds/index.tsx +++ b/shared/editor/embeds/index.tsx @@ -353,6 +353,7 @@ const embeds: EmbedDescriptor[] = [ new EmbedDescriptor({ title: "Tldraw", keywords: "draw schematics diagrams", + visible: false, icon: () => Tldraw, component: Tldraw, }),