Skip to content

Commit

Permalink
fix advanced video block breaking
Browse files Browse the repository at this point in the history
  • Loading branch information
farhan-shafi committed Jan 30, 2024
1 parent 2d4dbdb commit 2736d6b
Show file tree
Hide file tree
Showing 6 changed files with 102,462 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/blocks.build.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-api', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-primitives', 'wp-url'), 'version' => 'f11fa6487829cf88b557');
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-api', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-primitives', 'wp-url'), 'version' => 'ce0125ece88fe8903fcb');
102,450 changes: 102,449 additions & 1 deletion dist/blocks.build.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/blocks.build.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/priority.build.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array(), 'version' => '31d6cfe0d16ae931b73c');
<?php return array('dependencies' => array(), 'version' => 'bf4427955793c56378a0');
9 changes: 9 additions & 0 deletions dist/priority.build.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/blocks/advanced-video/components.js
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ export function AdvancedVideoBlock(props) {
if (!isEmpty(videoURLInput)) {
checkVideoURLInput();

if (videoSource !== "tiktok") {
if (!isEmpty(videoSource) && videoSource !== "tiktok") {
setAttributes({
videoEmbedCode: adjustVideoStart(
videoSource,
Expand Down

0 comments on commit 2736d6b

Please sign in to comment.