From 57747e8f13486d1e9ed32a4cb8353a4e3ed25757 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Fri, 9 Jun 2017 00:22:58 +0700 Subject: [PATCH] Make mutations extendable --- client/coral-framework/graphql/mutations.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/client/coral-framework/graphql/mutations.js b/client/coral-framework/graphql/mutations.js index 20ed175b3..dcba97891 100644 --- a/client/coral-framework/graphql/mutations.js +++ b/client/coral-framework/graphql/mutations.js @@ -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 } } `, {