mirror of
https://github.com/wassname/talk.git
synced 2026-08-01 13:00:55 +08:00
linting
This commit is contained in:
@@ -136,7 +136,7 @@ export const withAddTag = withMutation(
|
||||
data.tags.push({
|
||||
tag: {
|
||||
__typename: 'Tag',
|
||||
name: "BEST"
|
||||
name: 'BEST'
|
||||
},
|
||||
__typename: 'TagLink'
|
||||
});
|
||||
@@ -172,7 +172,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)];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user