1
0

fix(labels): make color reset work

This commit is contained in:
kolaente
2024-01-15 14:00:08 +01:00
parent e94b71d577
commit 28050d9cd5
7 changed files with 20 additions and 13 deletions

View File

@ -4,8 +4,8 @@
* @param color
* @returns {string}
*/
export function colorFromHex(color: string) {
if (color.substring(0, 1) === '#') {
export function colorFromHex(color: string): string {
if (color !== '' && color.substring(0, 1) === '#') {
color = color.substring(1, 7)
}