Update agent validation and action

This commit is contained in:
Eng. Elias
2024-02-29 15:10:07 +04:00
parent 61fabd883f
commit bac877171e
3 changed files with 99 additions and 22 deletions

View File

@@ -62,7 +62,7 @@ function NewAgentModal(props: {
const [createAgent] = useMutation(CREATE_AGENT);
const [createAgentLoading, setCreateAgentLoading] = useState(false);
const handleCreateAgent = (agentData: Agent) => {
const handleCreateAgent = async (agentData: Agent) => {
setCreateAgentLoading(true);
return createAgent({
variables: {