Skip to content

Comments

fix(effects): Condition of 0 was displaying as [Not Set] (#3086)#3087

Merged
ebiggz merged 2 commits intocrowbartools:v5from
phroggster:fix/3086
Apr 7, 2025
Merged

fix(effects): Condition of 0 was displaying as [Not Set] (#3086)#3087
ebiggz merged 2 commits intocrowbartools:v5from
phroggster:fix/3086

Conversation

@phroggster
Copy link
Collaborator

Description of the Change

Applicable Issues

#3086

Testing

Tested numerous ways to potentially break it, some with absolutely atrocious conditions, and all appeared fine.

Screenshots

args count zero after

@phroggster phroggster requested a review from ebiggz as a code owner April 6, 2025 11:59
$ctrl.$onInit = function() {
getRightSideValueDisplay().then((value) => {
$ctrl.rightSideValueDisplay = value || "[Not Set]";
$ctrl.rightSideValueDisplay = value !== null && value !== undefined ? value : "[Not Set]";
Copy link
Member

Choose a reason for hiding this comment

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

This works just fine. But note that a single value != null check would be sufficient as it only checks null and undefined, it's not a full falsey check (that would catch 0).

@ebiggz ebiggz merged commit 5fd081a into crowbartools:v5 Apr 7, 2025
1 check passed
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