Skip to content

Commit

Permalink
Merge pull request #468 from prezly/fix/dev-7586-video-block-modifica…
Browse files Browse the repository at this point in the history
…tion-detection

[DEV-7586] Fix VideoNode layout modification detection
  • Loading branch information
e1himself authored Aug 18, 2023
2 parents 708926b + 804de5a commit 5a824c1
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ export function VideoExtension({
},
isElementEqual: (node, another) => {
if (VideoNode.isVideoNode(node) && VideoNode.isVideoNode(another)) {
return node.url === another.url && isEqual(node.oembed, another.oembed);
return (
node.url === another.url &&
isEqual(node.oembed, another.oembed) &&
node.layout === node.layout
);
}
return undefined;
},
Expand Down

0 comments on commit 5a824c1

Please sign in to comment.