Skip to content
Snippets Groups Projects
Commit 747aac9c authored by Jose Manuel Serrano Amaut's avatar Jose Manuel Serrano Amaut
Browse files

[FIX]: Fixed onCancel and OnAbort always true. Replaced by a ternary conditional

parent 476a7bce
No related branches found
No related tags found
No related merge requests found
...@@ -281,11 +281,15 @@ const FileMosaic: React.FC<FileMosaicProps> = (props: FileMosaicProps) => { ...@@ -281,11 +281,15 @@ const FileMosaic: React.FC<FileMosaicProps> = (props: FileMosaicProps) => {
<FileMosaicUploadLayer <FileMosaicUploadLayer
uploadStatus={uploadStatus} uploadStatus={uploadStatus}
progress={localProgress} progress={localProgress}
onCancel={() => onCancel?.(id)} onCancel={onCancel ? () => onCancel?.(id) : undefined}
onAbort={() => { onAbort={
xhr?.abort(); onAbort
onAbort?.(id); ? () => {
}} xhr?.abort();
onAbort?.(id);
}
: undefined
}
localization={localization} localization={localization}
/> />
</Layer> </Layer>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment