Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

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

Nam Vu68ad9a91b2f1
diff --git a/web/app/components/app/overview/settings/index.tsx b/web/app/components/app/overview/settings/index.tsx
index fabffcf8095..88d5c2d9094 100644
--- a/web/app/components/app/overview/settings/index.tsx
+++ b/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})/