Skip to content

Comments

Colors theme: fix chargepoint display#3157

Merged
LKuemmel merged 1 commit intoopenWB:masterfrom
cshagen:web-2026
Feb 24, 2026
Merged

Colors theme: fix chargepoint display#3157
LKuemmel merged 1 commit intoopenWB:masterfrom
cshagen:web-2026

Conversation

@cshagen
Copy link
Collaborator

@cshagen cshagen commented Feb 23, 2026

  • Korrektur Ladepunkt

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a critical bug in the chargepoint display logic where chargepoint 0 would be incorrectly rejected due to a falsy value check. The bug prevented messages for chargepoint 0 from being processed since the condition if (index && !(index in chargePoints)) would evaluate the numeric index 0 as falsy.

Changes:

  • Fixed the index validation condition to use explicit undefined check instead of truthy check, allowing chargepoint 0 to be properly processed

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@LKuemmel LKuemmel merged commit cf3fee4 into openWB:master Feb 24, 2026
7 checks 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