mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
chore(client): fix typecheck
This commit is contained in:
@@ -16,14 +16,10 @@ const darkThemeColorMinLightness = readCssVar(
|
|||||||
).asNumber(50);
|
).asNumber(50);
|
||||||
|
|
||||||
function createClassForColor(colorString: string | null) {
|
function createClassForColor(colorString: string | null) {
|
||||||
if (!colorString?.trim()) {
|
if (!colorString?.trim()) return "";
|
||||||
return "";
|
|
||||||
}
|
|
||||||
|
|
||||||
const color = parseColor(colorString);
|
const color = parseColor(colorString);
|
||||||
if (!color) {
|
if (!color) return "";
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const className = `color-${color.hex().substring(1)}`;
|
const className = `color-${color.hex().substring(1)}`;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user