diff --git a/src/components/NcRichText/NcReferenceWidget.vue b/src/components/NcRichText/NcReferenceWidget.vue index dbf9b93282..8c60c0885b 100644 --- a/src/components/NcRichText/NcReferenceWidget.vue +++ b/src/components/NcRichText/NcReferenceWidget.vue @@ -189,12 +189,16 @@ export default { this.renderWidget() }, renderWidget() { - if (this.$refs.customWidget) { - this.$refs.customWidget.innerHTML = '' + if (!this.$refs.customWidget) { + return } + if (this?.reference?.richObjectType === 'open-graph') { return } + + this.$refs.customWidget.innerHTML = '' + // create a separate element so we can rerender on the ref again const widget = document.createElement('div') this.$refs.customWidget.appendChild(widget)