Skip to content

Commit

Permalink
added minor change in frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
anisha1607 committed Jul 19, 2023
1 parent 863b6b7 commit f291700
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gui/pages/Content/Agents/AgentCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,11 +368,11 @@ export default function AgentCreate({sendAgentData,selectedProjectId,fetchAgents
return false;
}

if (agentName.replace(/\s/g, '') === '') {
if (agentName?.replace(/\s/g, '') === '') {
toast.error("Agent name can't be blank", {autoClose: 1800});
return false;
}
if (agentDescription.replace(/\s/g, '') === '') {
if (agentDescription?.replace(/\s/g, '') === '') {
toast.error("Agent description can't be blank", {autoClose: 1800});
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion gui/pages/api/DashboardService.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const updateExecution = (executionId, executionData) => {
};

export const editAgentTemplate = (agentTemplateId, agentTemplateData) => {
return api.put(`/agent_templates/edit_agent_template/${agentTemplateId}`, agentTemplateData)
return api.put(`/agent_templates/update_agent_template/${agentTemplateId}`, agentTemplateData)
}

export const addExecution = (executionData) => {
Expand Down

0 comments on commit f291700

Please sign in to comment.