Skip to content

Commit

Permalink
fix(studio): undefined error for semantic-color.tsx (#2387)
Browse files Browse the repository at this point in the history
  • Loading branch information
k-utsumi committed Mar 15, 2024
1 parent fabdabe commit 9c70562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/studio/src/components/semantic-color.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ColorWrapper } from './color-wrapper'
import * as context from '../lib/panda-context'

const getSemanticColorValue = (variable: string): string => {
const _name = variable.match(/var\(\s*--(.*?)\s*\)/)
const _name = variable?.match(/var\(\s*--(.*?)\s*\)/)
if (!_name) return variable

const name = _name[1].replaceAll('-', '.')
Expand Down

0 comments on commit 9c70562

Please sign in to comment.