From 15ec16687e1134b89f38c94aac412e8954aa78fa Mon Sep 17 00:00:00 2001 From: Ian Bolton Date: Tue, 26 Sep 2023 10:54:54 -0400 Subject: [PATCH] :bug: Add missing clear handler for app import (#1400) - Closes https://issues.redhat.com/browse/MTA-1312 Signed-off-by: ibolton336 --- .../import-applications-form/import-applications-form.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/src/app/pages/applications/components/import-applications-form/import-applications-form.tsx b/client/src/app/pages/applications/components/import-applications-form/import-applications-form.tsx index 709cc3e311..274838de8a 100644 --- a/client/src/app/pages/applications/components/import-applications-form/import-applications-form.tsx +++ b/client/src/app/pages/applications/components/import-applications-form/import-applications-form.tsx @@ -98,6 +98,9 @@ export const ImportApplicationsForm: React.FC = ({ accept: { "text/csv": [".csv"] }, onDropRejected: handleFileRejected, }} + onClearClick={() => { + setFile(undefined); + }} /> {isFileRejected && (