mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-25 04:12:44 +03:00
fix: prompt update in brains management settings tab (#1543)
# Description #1540 ## Checklist before requesting a review Please delete options that are not relevant. - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my code - [ ] I have commented hard-to-understand areas - [ ] I have ideally added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged ## Screenshots (if appropriate):
This commit is contained in:
parent
2ffa0f3ff4
commit
a81f3328c8
@ -258,7 +258,7 @@ export const useSettingsTab = ({ brainId }: UseSettingsTabProps) => {
|
||||
}
|
||||
|
||||
if (dirtyFields["prompt"]) {
|
||||
if (promptId === "") {
|
||||
if (promptId === "" || promptId === undefined) {
|
||||
otherConfigs["prompt_id"] = (
|
||||
await createPrompt({
|
||||
title: prompt.title,
|
||||
|
Loading…
Reference in New Issue
Block a user