Fix bug in mutation
This commit is contained in:
parent
bb54aeb145
commit
be18b2c4c7
|
|
@ -127,23 +127,21 @@
|
|||
return true
|
||||
}
|
||||
|
||||
|
||||
function updateLastModuleLevelUser(moduleLevel: Object) {
|
||||
|
||||
const {mutate: updateLastModuleLevel} = useMutation(gql `
|
||||
mutation ($input: UpdateLastModuleLevelInput!){
|
||||
updateLastModuleLevel(input: $input) {
|
||||
clientMutationId
|
||||
user {
|
||||
username
|
||||
lastModuleLevel {
|
||||
name
|
||||
id
|
||||
}
|
||||
}
|
||||
const {mutate: updateLastModuleLevel} = useMutation(gql `
|
||||
mutation ($input: UpdateLastModuleLevelInput!){
|
||||
updateLastModuleLevel(input: $input) {
|
||||
clientMutationId
|
||||
user {
|
||||
username
|
||||
lastModuleLevel {
|
||||
name
|
||||
id
|
||||
}
|
||||
}`);
|
||||
}
|
||||
}
|
||||
}`);
|
||||
|
||||
const updateLastModuleLevelUser = (moduleLevel: Object) => {
|
||||
updateLastModuleLevel({
|
||||
input: {
|
||||
id: moduleLevel.id,
|
||||
|
|
|
|||
Loading…
Reference in New Issue