-
-
Notifications
You must be signed in to change notification settings - Fork 648
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: fix invalid color str in paste #2783
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #2783 +/- ##
==========================================
- Coverage 26.31% 26.20% -0.11%
==========================================
Files 1706 1729 +23
Lines 91390 91897 +507
Branches 19345 19433 +88
==========================================
+ Hits 24045 24080 +35
- Misses 67345 67817 +472 ☔ View full report in Codecov by Sentry. |
View Deployment
|
packages/ui/src/utils/cell.ts
Outdated
const colorKit = new ColorKit(value); | ||
if (colorKit.isValid) { | ||
const rgbStr = colorKit.toRgbString(); | ||
styleList.cl = { | ||
rgb: rgbStr, | ||
}; | ||
} else { | ||
styleList.cl = { | ||
rgb: 'rgb(0,0,0)', | ||
}; | ||
} |
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.
styleList.cl = {
rgb: colorKit.isValid ? colorKit.toRgbString() : 'rgb(0,0,0)',
};
close #xxx
Pull Request Checklist