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

[REF]: Adjust conditional to show transition when other status comes afer...

[REF]: Adjust conditional to show transition when other status comes afer preparing if not uploading
parent e378106c
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,10 @@ const FileMosaicUploadLayer: React.FC<FileMosaicUploadLayerProps> = (
React.useEffect(() => {
setStatusHistory((statusHistory: Array<UPLOADSTATUS | undefined>) => {
if (statusHistory[statusHistory.length - 1] === "preparing") {
if (
statusHistory[statusHistory.length - 1] === "preparing" &&
uploadStatus === "uploading"
) {
const tempStatusHistory = [...statusHistory];
tempStatusHistory[statusHistory.length - 1] = uploadStatus;
//replace
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment