Просмотр исходного кода

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

tags/0.6.14
Nam Vu 1 год назад
Родитель
Сommit
68ad9a91b2
Аккаунт пользователя с таким Email не найден
1 измененных файлов: 1 добавлений и 1 удалений
  1. 1
    1
      web/app/components/app/overview/settings/index.tsx

+ 1
- 1
web/app/components/app/overview/settings/index.tsx Просмотреть файл

@@ -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})/

Загрузка…
Отмена
Сохранить