Skip to content

Conversation

@Gaurav490
Copy link

@Gaurav490 Gaurav490 commented Jan 29, 2018

Javascript alert will be shown now whenever delete is failed.

@laurenskling
Copy link
Contributor

You are hacking into the response being empty while in 200. This is because a failed remove doesn't actually give an error status from the API.

I think we should fix this first.

@laurenskling
Copy link
Contributor

Also, you are using alert just like the remove does in other cases. I think we should look into how to transfer all these errors into the flash messages. These alerts look terrible.

@laurenskling
Copy link
Contributor

keystonejs/keystone#4832 this should actually return an error from the API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants