Make mutations extendable

This commit is contained in:
Chi Vinh Le
2017-06-09 00:22:58 +07:00
parent 5a89ca51f5
commit 57747e8f13
+2 -6
View File
@@ -187,9 +187,7 @@ export const withAddTag = withMutation(
gql`
mutation AddTag($id: ID!, $asset_id: ID!, $name: String!) {
addTag(tag: {name: $name, id: $id, item_type: COMMENTS, asset_id: $asset_id}) {
errors {
translation_key
}
...ModifyTagResponse
}
}
`, {
@@ -232,9 +230,7 @@ export const withRemoveTag = withMutation(
gql`
mutation RemoveTag($id: ID!, $asset_id: ID!, $name: String!) {
removeTag(tag: {name: $name, id: $id, item_type: COMMENTS, asset_id: $asset_id}) {
errors {
translation_key
}
...ModifyTagResponse
}
}
`, {