Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Cadastrar
Acessar
OpenSource
/
dify
Observar
4
Favorito
0
Fork
0
Código
Issues
0
Pull requests
0
Versões
152
Wiki
Atividade
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
c17a4165c1
commit
68ad9a91b2
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados
com
1 adições
e
1 exclusões
Visão dividida
Mostrar estatísticas do Diff
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})/
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar