diff --git a/agenta-web/src/components/pages/evaluations/NewEvaluation/NewEvaluationModal.tsx b/agenta-web/src/components/pages/evaluations/NewEvaluation/NewEvaluationModal.tsx index d9b08d2236..dbe48eb1de 100644 --- a/agenta-web/src/components/pages/evaluations/NewEvaluation/NewEvaluationModal.tsx +++ b/agenta-web/src/components/pages/evaluations/NewEvaluation/NewEvaluationModal.tsx @@ -49,7 +49,7 @@ const useStyles = createUseStyles((theme: JSSTheme) => ({ type Props = { onSuccess?: () => void - setIsConfigEvaluatorModalOpen: (val: string) => void + setIsConfigEvaluatorModalOpen?: (val: string) => void } & React.ComponentProps const NewEvaluationModal: React.FC = ({ diff --git a/agenta-web/src/components/pages/evaluations/NewEvaluation/SelectEvaluatorSection.tsx b/agenta-web/src/components/pages/evaluations/NewEvaluation/SelectEvaluatorSection.tsx index b4605604cc..b1e67717bd 100644 --- a/agenta-web/src/components/pages/evaluations/NewEvaluation/SelectEvaluatorSection.tsx +++ b/agenta-web/src/components/pages/evaluations/NewEvaluation/SelectEvaluatorSection.tsx @@ -9,7 +9,7 @@ type SelectEvaluatorSectionProps = { evaluators: Evaluator[] selectedEvalConfigs: string[] setSelectedEvalConfigs: React.Dispatch> - setIsConfigEvaluatorModalOpen: (val: string) => void + setIsConfigEvaluatorModalOpen?: (val: string) => void } & React.ComponentProps const SelectEvaluatorSection = ({ @@ -97,7 +97,7 @@ const SelectEvaluatorSection = ({ size="small" onClick={(e) => { e.stopPropagation() - setIsConfigEvaluatorModalOpen("open") + setIsConfigEvaluatorModalOpen?.("open") }} > Create new