Skip to content

Download Selected with no selections downloads an empty papers.zip file #382

@SarveshMD

Description

@SarveshMD

Describe the bug
In any Catalogue/Subject page (eg: https://papers.codechefvit.com/catalogue?subject=Data+Structures+And+Algorithms+%5BBCSE202L%5D), when no paper is selected, hitting "Download Selected" button downloads an empty "papers.zip" file of size 22 bytes.

To Reproduce
Steps to reproduce the behavior:

  1. Go to any subject page
  2. Click on "Download Selected"
  3. A zip file with no contents and title "papers.zip" of size 22 bytes is downloaded.

Expected behavior
It should say a toast message like no paper is selected and should not download anything.

Screenshots
Not necessary, very simple to replicate.

Device Independent

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions