Clean up code
This commit is contained in:
parent
446f6ad563
commit
b7e965956b
|
|
@ -353,16 +353,7 @@ const _save = debounce(function () {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
doUpdateAssignmentWithSuccess(variables, {
|
doUpdateAssignmentWithSuccess(variables).then(() => {
|
||||||
update(
|
|
||||||
_cache,
|
|
||||||
{
|
|
||||||
data: {
|
|
||||||
updateAssignment: { _successful, _updatedAssignment },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
) {},
|
|
||||||
}).then(() => {
|
|
||||||
saving.value--;
|
saving.value--;
|
||||||
if (saving.value === 0) {
|
if (saving.value === 0) {
|
||||||
unsaved.value = false;
|
unsaved.value = false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue