-
Notifications
You must be signed in to change notification settings - Fork 474
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(kit): possible type error reduce of empty array with no initial value #6107
Conversation
Pull request was closed ✔️All saved screenshots (for current PR) were deleted 🗑️ |
Visit the preview URL for this PR (updated for commit 575b36c): https://taiga-ui--pr6107-splincode-fix-runtim-l1sk8f3o.web.app (expires Thu, 30 Nov 2023 10:30:49 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 4b5ece1e114386f6a105425ef799091475b249eb |
BundleMonUnchanged files (5)
Total files change +12B 0% Groups updated (1)
Final result: ✅ View report in BundleMon website ➡️ |
e37e0c5
to
ebedc9e
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #6107 +/- ##
=======================================
Coverage 71.93% 71.93%
=======================================
Files 1462 1462
Lines 15987 15987
Branches 2273 2273
=======================================
Hits 11501 11501
Misses 4115 4115
Partials 371 371
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -94,6 +94,7 @@ export class TuiBarChartComponent { | |||
private getMax(values: ReadonlyArray<readonly number[]>, collapsed: boolean): number { | |||
return collapsed | |||
? Math.max( | |||
// eslint-disable-next-line no-restricted-syntax |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if you add default 0
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ebedc9e
to
797b98e
Compare
797b98e
to
575b36c
Compare
PR Type
What kind of change does this PR introduce?
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Reduce_of_empty_array_with_no_initial_value