[GH-ISSUE #390] Save to collections after deleting all the collections causes an error page #143

Closed
opened 2026-03-16 13:40:26 +03:00 by kerem · 2 comments
Owner

Originally created by @aksappy on GitHub (Dec 2, 2019).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/390

Originally assigned to: @liyasthomas on GitHub.

Describe the bug
When trying to save to collection, after deleting all the existing collection throws

this.$store.state.postwoman.collections[this.$data.requestData.collectionIndex] is undefined

To Reproduce
Steps to reproduce the behavior:

  1. Save a request to an existing collection.
  2. Delete all the existing collections
  3. Click on Save to Collections
  4. Error is seen, in addition to that neither "Go Home" or "Reload" does not work.

Expected behavior
Either say that there is no collection OR Save without a collection OR prompt for new collection

Screenshots

image

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Firefox
  • 70.0.1
Originally created by @aksappy on GitHub (Dec 2, 2019). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/390 Originally assigned to: @liyasthomas on GitHub. **Describe the bug** When trying to save to collection, after deleting all the existing collection throws > this.$store.state.postwoman.collections[this.$data.requestData.collectionIndex] is undefined **To Reproduce** Steps to reproduce the behavior: 1. Save a request to an existing collection. 2. Delete all the existing collections 3. Click on Save to Collections 4. Error is seen, in addition to that neither "Go Home" or "Reload" does not work. **Expected behavior** Either say that there is no collection OR Save without a collection OR prompt for new collection **Screenshots** ![image](https://user-images.githubusercontent.com/4348461/69923956-73d11480-1476-11ea-8c93-596f65e311de.png) **Desktop (please complete the following information):** - OS: Windows 10 - Browser: Firefox - 70.0.1
kerem 2026-03-16 13:40:26 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@ialexreis commented on GitHub (Dec 8, 2019):

I'm checking out this bug, and I detected that some array validation was missing.

Maybe this should be fixed with the recreation of a default collection "My Collection", in background or with a modal showing on the page, with the collection creation form.

What do you guys think is the best solution?

<!-- gh-comment-id:563000534 --> @ialexreis commented on GitHub (Dec 8, 2019): I'm checking out this bug, and I detected that some array validation was missing. Maybe this should be fixed with the recreation of a default collection "My Collection", in background or with a modal showing on the page, with the collection creation form. What do you guys think is the best solution?
Author
Owner

@ialexreis commented on GitHub (Dec 8, 2019):

@liyasthomas Implemented this validation, to prevent this bug from happenning..
Launching PR.

imagem

<!-- gh-comment-id:563006101 --> @ialexreis commented on GitHub (Dec 8, 2019): @liyasthomas Implemented this validation, to prevent this bug from happenning.. Launching PR. ![imagem](https://user-images.githubusercontent.com/36900578/70397949-684d9280-1a0e-11ea-81ac-b232ed61fb9b.png)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#143
No description provided.