mirror of
https://github.com/wassname/talk.git
synced 2026-07-17 11:33:39 +08:00
Lint
This commit is contained in:
@@ -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)];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user