mirror of
https://github.com/langgenius/dify.git
synced 2026-04-02 12:50:34 +08:00
fix: fix when vision is disabled delete the configs (#30420)
This commit is contained in:
parent
5b02e5dcb6
commit
ae43ad5cb6
@ -49,6 +49,9 @@ const useConfigVision = (model: ModelConfig, {
|
||||
variable_selector: ['sys', 'files'],
|
||||
}
|
||||
}
|
||||
else if (!enabled) {
|
||||
delete draft.configs
|
||||
}
|
||||
})
|
||||
onChange(newPayload)
|
||||
}, [isChatMode, onChange, payload])
|
||||
|
||||
Loading…
Reference in New Issue
Block a user