Browse Source

fix: validateColorHex: cannot read properties of undefined (reading 'length') (#6242)

tags/0.6.14
Nam Vu 1 year ago
parent
commit
68ad9a91b2
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      web/app/components/app/overview/settings/index.tsx

+ 1
- 1
web/app/components/app/overview/settings/index.tsx View File

} }


const validateColorHex = (hex: string | null) => { const validateColorHex = (hex: string | null) => {
if (hex === null || hex.length === 0)
if (hex === null || hex?.length === 0)
return true return true


const regex = /#([A-Fa-f0-9]{6})/ const regex = /#([A-Fa-f0-9]{6})/

Loading…
Cancel
Save