This commit is contained in:
Belen Curcio
2017-06-08 12:37:37 -03:00
parent 1f261f5216
commit f6798af74d
+1 -1
View File
@@ -252,7 +252,7 @@ export const withRemoveTag = withMutation(
// Read the data from our cache for this query.
const data = proxy.readFragment({fragment: COMMENT_FRAGMENT, id: fragmentId});
const idx = data.tags.findIndex(i => i.tag.name === 'BEST');
const idx = data.tags.findIndex((i) => i.tag.name === 'BEST');
data.tags = [...data.tags.slice(0, idx), ...data.tags.slice(idx + 1)];