FileUploader removeFromQueue should check if item is valid #763

Open
opened 2017-04-26 15:38:54 +00:00 by pgeyman · 0 comments
pgeyman commented 2017-04-26 15:38:54 +00:00 (Migrated from github.com)

If you call FileUploader#removeFromQueue with an item not in the queue, then it will remove the last item from the queue.

In this case, index would be -1, so this.queue.splice(index, 1) would remove the last item of the queue.

If you call FileUploader#removeFromQueue with an item not in the queue, then it will remove the last item from the queue. In this case, index would be -1, so this.queue.splice(index, 1) would remove the last item of the queue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dc/ng2-file-upload#763