mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Fix: reassign object for user.items.mounts to trigger change in vue view
This commit is contained in:
@@ -28,7 +28,10 @@ export default function releaseMounts (user, req = {}, analytics) {
|
||||
if (user.items.mounts[mount] === null || user.items.mounts[mount] === undefined) {
|
||||
giveMountMasterAchievement = false;
|
||||
}
|
||||
user.items.mounts[mount] = null;
|
||||
user.items.mounts = {
|
||||
...user.items.mounts,
|
||||
[mount]: null,
|
||||
};
|
||||
}
|
||||
|
||||
if (user.markModified) user.markModified('items.mounts');
|
||||
|
||||
Reference in New Issue
Block a user