fix(ui): incorrect nodes edge color for the global graph view #10578

pull/10584/head
charlie 2023-11-30 15:11:46 +08:00 committed by Tienson Qin
parent 5bc3fb0383
commit 59cce66cd7
1 changed files with 2 additions and 1 deletions

View File

@ -85,5 +85,6 @@
(str/replace "hsl(" "") (str/replace "hsl(" "")
(str/replace ")" "") (str/replace ")" "")
(str/split ","))] (str/split ","))]
(let [hsl-color (map js/parseFloat hsl-color)] (when-let [hsl-color (and (not (str/blank? (first hsl-color)))
(map js/parseFloat hsl-color))]
(apply util/hsl2hex hsl-color)))) (apply util/hsl2hex hsl-color))))