Remove unused variable, make linter happy
This commit is contained in:
parent
ca82a080d1
commit
00ae2a4cf2
|
|
@ -37,8 +37,8 @@ export const resolvers = {
|
||||||
deleteModuleNodes: (_, _query, {cache}) => {
|
deleteModuleNodes: (_, _query, {cache}) => {
|
||||||
Object.keys(cache.data.data)
|
Object.keys(cache.data.data)
|
||||||
.filter(prop => prop.indexOf('ModuleNode:') === 0)
|
.filter(prop => prop.indexOf('ModuleNode:') === 0)
|
||||||
.map(moduleName => cache.data.delete(moduleName)); // v3 uses .evict{id, fieldname}
|
.map(moduleName => cache.data.delete(moduleName)); // v3 uses .evict{id, fieldname}
|
||||||
return {success: true}
|
return {success: true};
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import ME_QUERY from '@/graphql/gql/queries/meQuery.gql';
|
||||||
import UPDATE_USER_SETTING from '@/graphql/gql/mutations/updateUserSetting.gql';
|
import UPDATE_USER_SETTING from '@/graphql/gql/mutations/updateUserSetting.gql';
|
||||||
import MY_SCHOOL_CLASS_QUERY from '@/graphql/gql/queries/mySchoolClass.gql';
|
import MY_SCHOOL_CLASS_QUERY from '@/graphql/gql/queries/mySchoolClass.gql';
|
||||||
import DELETE_MODULE_NODES from '@/graphql/gql/local/mutations/deleteModuleNodes.gql';
|
import DELETE_MODULE_NODES from '@/graphql/gql/local/mutations/deleteModuleNodes.gql';
|
||||||
import MODULE_DETAILS_QUERY from "@/graphql/gql/queries/modules/moduleDetailsQuery.gql";
|
import MODULE_DETAILS_QUERY from '@/graphql/gql/queries/modules/moduleDetailsQuery.gql';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
methods: {
|
methods: {
|
||||||
|
|
@ -23,21 +23,17 @@ export default {
|
||||||
store.writeQuery({query: ME_QUERY, data: meData});
|
store.writeQuery({query: ME_QUERY, data: meData});
|
||||||
|
|
||||||
innerApollo.mutate({
|
innerApollo.mutate({
|
||||||
mutation: DELETE_MODULE_NODES,
|
mutation: DELETE_MODULE_NODES
|
||||||
variables: {
|
});
|
||||||
test: '',
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
},
|
},
|
||||||
refetchQueries: [{
|
refetchQueries: [{
|
||||||
query: MY_SCHOOL_CLASS_QUERY
|
query: MY_SCHOOL_CLASS_QUERY
|
||||||
}, {
|
}, {
|
||||||
query: MODULE_DETAILS_QUERY,
|
query: MODULE_DETAILS_QUERY,
|
||||||
variables: {
|
variables: {
|
||||||
slug: this.$route.params.slug
|
slug: this.$route.params.slug
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.warn('failed to update selected class', error);
|
console.warn('failed to update selected class', error);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue