Remove TLDraw from embed menu as it no longer supports embedding
This commit is contained in:
@@ -427,7 +427,7 @@ class CommandMenu<T = MenuItem> extends React.Component<Props<T>, State> {
|
||||
const embedItems: EmbedDescriptor[] = [];
|
||||
|
||||
for (const embed of embeds) {
|
||||
if (embed.title) {
|
||||
if (embed.title && embed.visible !== false) {
|
||||
embedItems.push(
|
||||
new EmbedDescriptor({
|
||||
...embed,
|
||||
|
||||
@@ -353,6 +353,7 @@ const embeds: EmbedDescriptor[] = [
|
||||
new EmbedDescriptor({
|
||||
title: "Tldraw",
|
||||
keywords: "draw schematics diagrams",
|
||||
visible: false,
|
||||
icon: () => <Img src="/images/tldraw.png" alt="Tldraw" />,
|
||||
component: Tldraw,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user