We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e1fa16 commit fccf98dCopy full SHA for fccf98d
apps/sim/lib/workspaces/colors.ts
@@ -83,8 +83,10 @@ function withAlpha(hexColor: string, alpha: number): string {
83
* @param color - A hex color string (e.g. `#2ABBF8`)
84
* @returns The color string with `60` appended as the hex alpha channel
85
*/
86
-export function workflowBorderColor(color: string): string {
87
- return `${color}60`
+export function workflowBorderColor(color: string): string
+export function workflowBorderColor(color: string | undefined): string | undefined
88
+export function workflowBorderColor(color: string | undefined): string | undefined {
89
+ return color ? `${color}60` : undefined
90
}
91
92
function buildGradient(fromColor: string, toColor: string, rotationSeed: number): string {
0 commit comments