From 47c746457e5e0de8b3969308f6543b3872616bfa Mon Sep 17 00:00:00 2001 From: Tyler Brown Cifu Shuster Date: Thu, 1 Oct 2020 21:02:58 -0700 Subject: [PATCH] landscape: better embed checking --- pkg/interface/src/views/components/RemoteContent.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/interface/src/views/components/RemoteContent.tsx b/pkg/interface/src/views/components/RemoteContent.tsx index 68790ce29..28ed350b7 100644 --- a/pkg/interface/src/views/components/RemoteContent.tsx +++ b/pkg/interface/src/views/components/RemoteContent.tsx @@ -139,14 +139,14 @@ export default class RemoteContent extends PureComponent ); } else if (isOembed && remoteContentPolicy.oembedShown) { - if (!this.state.embed) { + if (!this.state.embed || this.state.embed?.html === '') { this.loadOembed(); } return ( {renderUrl ? this.wrapInLink(this.state.embed && this.state.embed.title ? this.state.embed.title : url) : null} - {this.state.embed !== 'error' && !unfold ?