Disable upload button if filesToUpload is null (#856)

This commit is contained in:
jbirddog 2024-01-04 10:35:01 -05:00 committed by GitHub
parent 4c20759e37
commit 746a20bc4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -492,6 +492,7 @@ export default function ProcessModelShow() {
open={showFileUploadModal} open={showFileUploadModal}
modalHeading="Upload File" modalHeading="Upload File"
primaryButtonText="Upload" primaryButtonText="Upload"
primaryButtonDisabled={filesToUpload === null}
secondaryButtonText="Cancel" secondaryButtonText="Cancel"
onSecondarySubmit={handleFileUploadCancel} onSecondarySubmit={handleFileUploadCancel}
onRequestClose={handleFileUploadCancel} onRequestClose={handleFileUploadCancel}