getting error message from backend on prompt verification
This commit is contained in:
parent
99d92bed1e
commit
845096d1ea
1 changed files with 1 additions and 2 deletions
|
|
@ -132,11 +132,10 @@ export default function PromptAreaModal({
|
|||
}
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log(error)
|
||||
return setErrorData({
|
||||
title:
|
||||
"There is something wrong with this prompt, please review it",
|
||||
});
|
||||
list:[error.response.data.detail]});
|
||||
});
|
||||
}}
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue