Ver código fonte

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

tags/0.6.14
Nam Vu 1 ano atrás
pai
commit
68ad9a91b2
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      web/app/components/app/overview/settings/index.tsx

+ 1
- 1
web/app/components/app/overview/settings/index.tsx Ver arquivo

@@ -109,7 +109,7 @@ const SettingsModal: FC<ISettingsModalProps> = ({
}

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

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

Carregando…
Cancelar
Salvar