Skip to content

fix: Empty Conditional Effects Showing Empty Conditions#2986

Merged
CaveMobster merged 2 commits intocrowbartools:v5from
phroggster:conditional-not-set
Feb 11, 2025
Merged

fix: Empty Conditional Effects Showing Empty Conditions#2986
CaveMobster merged 2 commits intocrowbartools:v5from
phroggster:conditional-not-set

Conversation

@phroggster
Copy link
Collaborator

Description of the Change

Adding a conditional effect then clearing the text of the condition used to display "[Not Set]" for the condition. This was changed, at some point in time (I'll leave it up to you to track down when this change occurred), and the conditions now appear as empty space, at least since Firebot v.5.63.2.

This PR changes it back to how it used to be, and instead displays "[Not Set]" again for empty conditions.

Applicable Issues

#2985

Testing

Thoroughly tested with numerous condition types and values. Only formerly empty display values appear to have been changed, which is a promising sight.

Screenshots

Before:
before

After:
after

- String comparisons in eval() contexts weren't equating "" to null.
- So add explicit empty string checks in four places.
- This adds back "[Not Set]" to display of conditional effects.
@phroggster phroggster requested a review from ebiggz as a code owner February 10, 2025 23:32
@CaveMobster CaveMobster merged commit e096452 into crowbartools:v5 Feb 11, 2025
1 check passed
@phroggster phroggster deleted the conditional-not-set branch February 18, 2025 20:50
phroggster added a commit to phroggster/Firebot that referenced this pull request Apr 6, 2025
ebiggz added a commit that referenced this pull request Apr 7, 2025
- This was overlooked in #2986.

Co-authored-by: Erik Bigler <erikbigler@gmail.com>
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.

2 participants

Comments