From 746a20bc4cce55f8f057a566c3532c0f239dd182 Mon Sep 17 00:00:00 2001 From: jbirddog <100367399+jbirddog@users.noreply.github.com> Date: Thu, 4 Jan 2024 10:35:01 -0500 Subject: [PATCH] Disable upload button if filesToUpload is null (#856) --- spiffworkflow-frontend/src/routes/ProcessModelShow.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/spiffworkflow-frontend/src/routes/ProcessModelShow.tsx b/spiffworkflow-frontend/src/routes/ProcessModelShow.tsx index 5da047685..0a217f70b 100644 --- a/spiffworkflow-frontend/src/routes/ProcessModelShow.tsx +++ b/spiffworkflow-frontend/src/routes/ProcessModelShow.tsx @@ -492,6 +492,7 @@ export default function ProcessModelShow() { open={showFileUploadModal} modalHeading="Upload File" primaryButtonText="Upload" + primaryButtonDisabled={filesToUpload === null} secondaryButtonText="Cancel" onSecondarySubmit={handleFileUploadCancel} onRequestClose={handleFileUploadCancel}