Skip to content

Internal: Fix filters would not update and empty values break render [ED-20053]#31869

Merged
RobiFerentz merged 1 commit intomainfrom
ED-20053
Jul 15, 2025
Merged

Internal: Fix filters would not update and empty values break render [ED-20053]#31869
RobiFerentz merged 1 commit intomainfrom
ED-20053

Conversation

@RobiFerentz
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jul 15, 2025

Elementor Build

Last updated at: 20250715.0726
Version: 3.31.0-20250715.0726

✅ Elementor build is ready for download.

You can download the latest build from the link below:

🔗 elementor-3.31.0-20250715.0726.zip

The build is available for 3 days.

let newValue = structuredClone( nVal );
const newFuncName = newValue?.func.value ?? '';
if ( meta?.bind === 'func' ) {
newValue = structuredClone( filterConfig[ newFuncName ].defaultValue.value );
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if newFuncName will be '' in this case?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it could be 2 times structuredClone with rewriting newValue

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's for typescript only, there option does not actually exists in the options drop down. It's only valid names, no empty strings or nulls etc.

@RobiFerentz RobiFerentz marked this pull request as ready for review July 15, 2025 07:34
@RobiFerentz RobiFerentz merged commit 3d570df into main Jul 15, 2025
29 checks passed
@RobiFerentz RobiFerentz deleted the ED-20053 branch July 15, 2025 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants