Skip to content

Commit 1860a0b

Browse files
author
coderiseio-bot
committed
UI bug fix for widget
1 parent 345ded8 commit 1860a0b

18 files changed

+189
-115
lines changed

build/admin.asset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-dom-ready', 'wp-element'), 'version' => '33b75895cca989947e3c');
1+
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-dom-ready', 'wp-element'), 'version' => 'e804f5beb0808bd606a1');

build/admin.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/admin.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/index.asset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('moment', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-html-entities', 'wp-i18n'), 'version' => '8de5fd8b874deeb3c859');
1+
<?php return array('dependencies' => array('moment', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-html-entities', 'wp-i18n'), 'version' => 'fc679a119c36ab7bd9b4');

build/index.js

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11365,20 +11365,16 @@ const EventDetails = ({
1136511365
});
1136611366
};
1136711367
const handleTypesChange = (field, value) => {
11368-
let types = attributes.types;
11369-
if (field === "members" && value.length > 0) {
11370-
types["members"] = value;
11368+
const types = {
11369+
...attributes.types
11370+
};
11371+
if (value === null || Array.isArray(value) && value.length === 0) {
11372+
types[field] = undefined;
1137111373
} else {
11372-
if (types[field] === value) {
11373-
delete types[field];
11374-
} else {
11375-
types[field] = value;
11376-
}
11374+
types[field] = value;
1137711375
}
1137811376
setAttributes({
11379-
types: {
11380-
...types
11381-
}
11377+
types
1138211378
});
1138311379
};
1138411380
const handleNotificationsChange = (field, value) => {
@@ -13573,13 +13569,16 @@ if (typeof wp === "undefined" || !wp.blocks) {
1357313569
type: "object",
1357413570
default: {},
1357513571
location_id: {
13576-
type: "number"
13572+
type: "number",
13573+
default: null
1357713574
},
1357813575
category_id: {
13579-
type: "number"
13576+
type: "number",
13577+
default: null
1358013578
},
1358113579
language_id: {
13582-
type: "number"
13580+
type: "number",
13581+
default: null
1358313582
},
1358413583
members: {
1358513584
type: "array",

build/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/src_Components_Pages_EventsPage_jsx.js

Lines changed: 8 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/src_Components_Pages_EventsPage_jsx.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/src_Components_PostEditor_EventDetails_jsx.js

Lines changed: 8 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/src_Components_PostEditor_EventDetails_jsx.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)