From f906368cf31d798052c1ac5755aff1edd834589c Mon Sep 17 00:00:00 2001 From: Mahmoud Mabrouk Date: Mon, 15 Jan 2024 09:31:05 +0100 Subject: [PATCH 1/2] export button always activated --- .../src/components/EvaluationTable/ABTestingEvaluationTable.tsx | 2 +- .../components/EvaluationTable/SingleModelEvaluationTable.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/agenta-web/src/components/EvaluationTable/ABTestingEvaluationTable.tsx b/agenta-web/src/components/EvaluationTable/ABTestingEvaluationTable.tsx index fb6331e2a8..8c4ca6fc27 100644 --- a/agenta-web/src/components/EvaluationTable/ABTestingEvaluationTable.tsx +++ b/agenta-web/src/components/EvaluationTable/ABTestingEvaluationTable.tsx @@ -382,7 +382,7 @@ const ABTestingEvaluationTable: React.FC = ({ exportABTestingEvaluationData(evaluation, rows)} - disabled={evaluationStatus !== EvaluationFlow.EVALUATION_FINISHED} + disabled={false} > Export results diff --git a/agenta-web/src/components/EvaluationTable/SingleModelEvaluationTable.tsx b/agenta-web/src/components/EvaluationTable/SingleModelEvaluationTable.tsx index a1ae8ecd76..efa7f1efcd 100644 --- a/agenta-web/src/components/EvaluationTable/SingleModelEvaluationTable.tsx +++ b/agenta-web/src/components/EvaluationTable/SingleModelEvaluationTable.tsx @@ -449,7 +449,7 @@ const SingleModelEvaluationTable: React.FC = ({ exportSingleModelEvaluationData(evaluation, rows)} - disabled={evaluationStatus !== EvaluationFlow.EVALUATION_FINISHED} + disabled={false} > Export results From f841c765f1a2c7401466275b4403184837acdc7c Mon Sep 17 00:00:00 2001 From: Mahmoud Mabrouk Date: Mon, 15 Jan 2024 09:50:53 +0100 Subject: [PATCH 2/2] fix format --- .../src/pages/apps/[app_id]/testsets/new/upload/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agenta-web/src/pages/apps/[app_id]/testsets/new/upload/index.tsx b/agenta-web/src/pages/apps/[app_id]/testsets/new/upload/index.tsx index 29f7c47337..139c45ffdc 100644 --- a/agenta-web/src/pages/apps/[app_id]/testsets/new/upload/index.tsx +++ b/agenta-web/src/pages/apps/[app_id]/testsets/new/upload/index.tsx @@ -70,8 +70,8 @@ export default function AddANewTestset() { router.push(`/apps/${appId}/testsets`) } catch (e: any) { if ( - e?.response?.data?.detail?.find( - (item: GenericObject) => item?.loc?.includes("csvdata"), + e?.response?.data?.detail?.find((item: GenericObject) => + item?.loc?.includes("csvdata"), ) ) message.error(malformedFileError)