mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-10 03:16:51 +08:00
fix: validateColorHex: cannot read properties of undefined (reading 'length') (#6242)
This commit is contained in:
@@ -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})/
|
||||
|
||||
Reference in New Issue
Block a user