diff --git a/webapp/components/Editor/nodes/Embed.js b/webapp/components/Editor/nodes/Embed.js index 7e63f2170..8a9343311 100644 --- a/webapp/components/Editor/nodes/Embed.js +++ b/webapp/components/Editor/nodes/Embed.js @@ -19,7 +19,7 @@ const template = ` -

+

dataEmbedUrl

@@ -91,6 +91,7 @@ export default class Embed extends Node { embedData: {}, showEmbed: true, showOverlay: false, + linkOnly: false, }), async created() { if (!this.options) return {} @@ -103,6 +104,11 @@ export default class Embed extends Node { }), embedHtml() { const { html = '' } = this.embedData + if (html === '') { + this.linkOnly = true + } else { + this.linkOnly = false + } return html }, embedImage() { diff --git a/webapp/graphql/User.js b/webapp/graphql/User.js index 91204cbef..8e3ff06af 100644 --- a/webapp/graphql/User.js +++ b/webapp/graphql/User.js @@ -153,4 +153,3 @@ export const checkSlugAvailableQuery = gql` } } ` -