Closed sashankaryal closed 5 months ago
The recent updates in the Looker package aim to enhance the robustness of the getHashLabel
function by adding a check for the presence of label.index
. This change improves input handling for more reliable type evaluation and reduced errors.
File | Change Summary |
---|---|
.../looker/src/overlays/util.ts |
Updated getHashLabel to check label.index before type evaluation. |
.../looker/src/overlays/index.test.ts |
Added imports for RegularLabel and getHashLabel , new test case for label hash generation. |
🐰💻 In the realm of code, where bugs do tease, A rabbit dances, brings code to ease.
label.index
checked, errors hushed, With a hop and a push, the code is brushed. Silence falls in the burrow's deep, Where the rabbit codes, and dreams do keep.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
0
is falsey in JS, which is what led to this bug of index-0 labels getting assigned randomized colors 😭Before
After
Summary by CodeRabbit