-
Notifications
You must be signed in to change notification settings - Fork 19.7k
Labels
🐞 bugSomething isn't workingSomething isn't working
Description
Self Checks
- I have read the Contributing Guide and Language Policy.
- This is only for bug report, if you would like to ask a question, please head to Discussions.
- I have searched for existing issues search for existing issues, including closed ones.
- I confirm that I am using English to submit this report, otherwise it will be closed.
- 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
- Please do not modify this template :) and fill in all the required fields.
Dify version
1.11.4
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
- click 未授权
- frontend crash with error
Error Type
Runtime TypeError
Error Message
Cannot read properties of null (reading 'credential_form_schemas')
at useModelFormSchemas.useMemo[formSchemas] (app/components/header/account-setting/model-provider-page/model-auth/hooks/use-model-form-schemas.ts:29:36)
at useModelFormSchemas (app/components/header/account-setting/model-provider-page/model-auth/hooks/use-model-form-schemas.ts:27:30)
at ModelModal (app/components/header/account-setting/model-provider-page/model-modal/index.tsx:111:26)
at ModalContextProvider (context/modal-context.tsx:397:13)
at Layout (app/(commonLayout)/layout.tsx:27:15)
Code Frame
27 | const formSchemas = useMemo(() => {
28 | return providerFormSchemaPredefined
29 | ? provider_credential_schema.credential_form_schemas
| ^
30 | : model_credential_schema.credential_form_schemas
31 | }, [
32 | providerFormSchemaPredefined,
✔️ Expected Behavior
no error
❌ Actual Behavior
frontend crash
dosubot
Metadata
Metadata
Assignees
Labels
🐞 bugSomething isn't workingSomething isn't working