fixed typo causing custom theme inputs to be broken

closes #2502
This commit is contained in:
Miodec 2022-02-14 19:38:59 +01:00
parent 994d1bc609
commit ed76a77397

View file

@ -822,7 +822,7 @@ export function convertRGBtoHEX(rgb: string): string | undefined {
return ("0" + parseInt(i).toString(16)).slice(-2);
}
return "#" + hexCode(rgb[1]) + hexCode(rgb[2]) + hexCode(rgb[3]);
return "#" + hexCode(match[1]) + hexCode(match[2]) + hexCode(match[3]);
}
// @ts-ignore