From 08552436719e6361da2301bf974a42a0ecfeed72 Mon Sep 17 00:00:00 2001 From: ibolton336 Date: Fri, 30 Jun 2023 14:00:20 -0400 Subject: [PATCH] :bug: Save button always enabled for custom-target edit Signed-off-by: ibolton336 --- .../app/pages/migration-targets/custom-target-form.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/client/src/app/pages/migration-targets/custom-target-form.tsx b/client/src/app/pages/migration-targets/custom-target-form.tsx index c859ae457f..a6526f6c30 100644 --- a/client/src/app/pages/migration-targets/custom-target-form.tsx +++ b/client/src/app/pages/migration-targets/custom-target-form.tsx @@ -478,7 +478,13 @@ export const CustomTargetForm: React.FC = ({ handleFile(file)} + customFileHandler={(file) => { + if (file.type === "placeholder") { + return null; + } else { + return handleFile(file); + } + }} onClearClick={() => removeFiles([file.fileName])} progressValue={getloadPercentage(file.fileName)} progressVariant={getloadResult(file.fileName)}