WIP(teams): fixes, beta banner

This commit is contained in:
Sabe Jones
2021-06-25 08:56:06 -05:00
committed by SabreCat
parent 85a9ea726c
commit 59dc97b75f
6 changed files with 49 additions and 2 deletions

View File

@@ -654,7 +654,7 @@ api.updateTask = {
// the other of the keys when using .toObject()
// see https://github.com/Automattic/mongoose/issues/2749
if (sanitizedObj.managerNotes) {
if (Object.prototype.hasOwnProperty.call(sanitizedObj, 'managerNotes')) {
task.group.managerNotes = sanitizedObj.managerNotes;
}