Remove deleted articles from the category list cache.
After DELETE, the category view kept showing the article until a full reload because Redux still held it.
This commit is contained in:
@@ -179,6 +179,7 @@ export const article = {
|
||||
|
||||
/**
|
||||
* DELETE /api/article/:sku → 204
|
||||
* Errors: 400 Article has children, 401, 403, 404 Article not found
|
||||
*/
|
||||
delete(sku) {
|
||||
return http(`/api/article/${encodeURIComponent(sku)}`, {
|
||||
|
||||
Reference in New Issue
Block a user