Skip download if the user didn't select a dir, fix StorageList's checkboxes #102
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Siderus/Orion!102
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "bugfix/108-cannot-read-property-0-of-undefined"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What changed?
Fixed https://dev.siderus.team/issues/108 (Cannot read property '0' of undefined)
While working on this I found 2 more bugs, one of which I fixed:
When I select a second element,
this.props.storageStore.selected.lengthis actually 0, because the equality check fails (it thinks it's the same element), therefore clicking 'Download' after checking 2 items did nothing.(not fixed) When downloading more than 1 item, the loading wheel never disappears even though the files were saved. I dug a bit into this and it looks like when we call
saveFileToPathtwice, the promise resolves only once. My fear is that we can't useIPFS_CLIENT.files.getReadableStream(hash)concurrently ... thoughts?In case the directories already exists the Promise Chain fails.
We should probably skip errors when creating directories:
https://sentry.io/siderus-opensource/orion/issues/552911163/
I will create a new task for this.