Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix ReferenceError by removing uninitialized color fallback #665

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AbbassJaber
Copy link

Types of changes

What types of changes does your code introduce?

Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Description

The existing implementation causes a reference issue with color, as it can unintentionally fallback to itself, leading to incorrect behavior. By removing || color, the assignment correctly prioritizes ranges[focusedRange[0]]?.color and rangeColors[focusedRange[0]], preventing unintended references.

Related Issue: #xxx

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant