mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
fix(task): hotfix for when task.attribute is sent as null
This commit is contained in:
@@ -162,6 +162,12 @@ TaskSchema.plugin(baseModel, {
|
||||
}
|
||||
}
|
||||
|
||||
// Fix issue where iOS was sending null as the value of the attribute field
|
||||
// See https://github.com/HabitRPG/habitica-ios/commit/4cd05f80363502eb7652e057aa564c85546f7806
|
||||
if (taskObj.attribute === null) {
|
||||
taskObj.attribute = 'str';
|
||||
}
|
||||
|
||||
return taskObj;
|
||||
},
|
||||
private: [],
|
||||
|
||||
Reference in New Issue
Block a user