Skip to content

Commit

Permalink
quality
Browse files Browse the repository at this point in the history
  • Loading branch information
hagen-danswer committed Jan 16, 2025
1 parent a0a438d commit bed53ab
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions web/src/app/admin/assistants/AssistantEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@ import { FiInfo, FiRefreshCcw, FiUsers } from "react-icons/fi";
import * as Yup from "yup";
import CollapsibleSection from "./CollapsibleSection";
import { SuccessfulPersonaUpdateRedirectType } from "./enums";
import {
Persona,
PersonaLabel,
StarterMessage,
} from "./interfaces";
import { Persona, PersonaLabel, StarterMessage } from "./interfaces";
import {
createPersonaLabel,
PersonaUpsertParameters,
Expand Down Expand Up @@ -501,7 +497,10 @@ export function AssistantEditor({

let personaResponse;
if (isUpdate) {
personaResponse = await updatePersona(existingPersona.id, submissionData);
personaResponse = await updatePersona(
existingPersona.id,
submissionData
);
} else {
personaResponse = await createPersona(submissionData);
}
Expand Down

0 comments on commit bed53ab

Please sign in to comment.