fix(base): show embed controls on the pending skeleton (#2594)

This commit is contained in:
Philip Okugbe 2026-10-21 20:06:49 +01:00 committed by GitHub
parent ded9b7ca9f
commit 2d24a12867
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -110,7 +110,8 @@ export function BaseEmbedView({ node, editor, deleteNode }: NodeViewProps) {
// mounts) is reserved only for the skeleton/loading/table states.
const isCompact = !pendingKey && (!pageId || isError);
const showControls = editor.isEditable && !pendingKey;
// Also on the skeleton, so a placeholder stuck pending can still be removed.
const showControls = editor.isEditable;
let content: React.ReactNode;
if (pendingKey) {