Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZP/delete endpoint bug fixed #44

Merged
merged 1 commit into from
May 26, 2024
Merged

Conversation

zelihapala
Copy link
Collaborator

When you press delete button, app was not updating immediately. It was updating the videos after refreshing. I found out that the fetch function was actually working but the .then() block before setVideos() function was giving error and causing the app to crash before executing setVideos() function with filtered from deleted video id. Bug fixed according to this issue.

Copy link

netlify bot commented May 26, 2024

Deploy Preview for watch-next-cyf ready!

Name Link
🔨 Latest commit d766c50
🔍 Latest deploy log https://app.netlify.com/sites/watch-next-cyf/deploys/6653b17ac6b52a0008034492
😎 Deploy Preview https://deploy-preview-44--watch-next-cyf.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@zelihapala zelihapala changed the title delete endpoint bug fixed ZP/delete endpoint bug fixed May 26, 2024
Copy link
Owner

@RbAvci RbAvci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works, but i think returning a success JSON is better like here: https://github.com/RbAvci/Full-Stack-Project-Assessment/blob/main/server/api.js#L34

@zelihapala zelihapala merged commit 82edc22 into main May 26, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants