diff options
author | mehekj <mehek.jethani@gmail.com> | 2021-10-07 16:47:27 -0400 |
---|---|---|
committer | mehekj <mehek.jethani@gmail.com> | 2021-10-07 16:47:27 -0400 |
commit | 11571a4db8907467b1a17d8fe14c80a9e47c6030 (patch) | |
tree | ea1cadecb241ad881332c8f953594633c8cf785c /src/Utils.ts | |
parent | e7d41738198931dd54dc4ce0b74ee2654ba10bbd (diff) | |
parent | 662176f25e25d3bf31cfb8ec6e3792d18f77f37d (diff) |
Merge branch 'master' into temporalmedia-mehek
Diffstat (limited to 'src/Utils.ts')
-rw-r--r-- | src/Utils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Utils.ts b/src/Utils.ts index 7ec4f69f3..53182cc9c 100644 --- a/src/Utils.ts +++ b/src/Utils.ts @@ -575,7 +575,7 @@ export function simulateMouseClick(element: Element | null | undefined, x: numbe export function DashColor(color: string) { try { - return Color(color.toLowerCase()); + return color ? Color(color.toLowerCase()) : Color("transparent"); } catch (e) { console.log("COLOR error:", e); return Color("red"); |