Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #93
Fixes the bug where users were unable to add new listings after clicking 'Airbnb ur Home'.
The error message "Failed to load listing details!" has been resolved.
Testing Instructions
Detailed instructions on how to test the changes. Include any setup needed and specific test cases.
npm install
to install dependencies.npm test
to execute the test suite.##screenrecord
https://github.com/user-attachments/assets/f9477cac-43eb-4ba2-85f7-90c441ce2c6a
Changes
Resolved the issue in the listing form that prevented new listings from being created.
Refactored the backend logic for handling new listing submissions.
Expected Behavior
Users should be able to upload new listings without encountering the "Failed to load listing details!" error.
###Checklist
I have searched the existing issues and found this one relevant.
I have performed a self-review of my code.
I have commented on the code where necessary.
No new warnings were introduced.