mirror of
https://github.com/wassname/talk.git
synced 2026-08-11 05:54:07 +08:00
Correct optimistic response
This commit is contained in:
@@ -200,8 +200,8 @@ export const withAddTag = withMutation(
|
||||
asset_id: assetId
|
||||
},
|
||||
optimisticResponse: {
|
||||
deleteAction: {
|
||||
__typename: 'DeleteActionResponse',
|
||||
addTag: {
|
||||
__typename: 'ModifyTagResponse',
|
||||
errors: null,
|
||||
}
|
||||
},
|
||||
@@ -242,6 +242,12 @@ export const withRemoveTag = withMutation(
|
||||
name,
|
||||
asset_id: assetId
|
||||
},
|
||||
optimisticResponse: {
|
||||
removeTag: {
|
||||
__typename: 'ModifyTagResponse',
|
||||
errors: null,
|
||||
}
|
||||
},
|
||||
update: (proxy) => {
|
||||
const fragmentId = `Comment_${id}`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user