Skip to content

Commit

Permalink
Updates the build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
gsarig committed Nov 17, 2024
1 parent a95b810 commit 509256a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'react-dom', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-plugins'), 'version' => 'fa8efa31d5326e923715');
<?php return array('dependencies' => array('react', 'react-dom', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-plugins'), 'version' => 'ffed3116e93e9924b150');
2 changes: 1 addition & 1 deletion build/index.js

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions src/variations.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// noinspection NpmUsedModulesInstalled,JSUnresolvedVariable

wp.domReady(() => {
// Unregister the `custom-fields` variation if the Location setting is disabled.
if (!ootbGlobal?.options?.geodata) {
wp.blocks.unregisterBlockVariation('ootb/openstreetmap', 'custom-fields');
}
if (!ootbGlobal?.options?.geodata) {
wp.blocks.unregisterBlockVariation('ootb/openstreetmap', 'custom-fields');
}
});

0 comments on commit 509256a

Please sign in to comment.