mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
fix tags
This commit is contained in:
@@ -9,6 +9,9 @@ import {
|
||||
import {
|
||||
model as PushDevice,
|
||||
} from '../pushDevice';
|
||||
import {
|
||||
model as Tag,
|
||||
} from '../tag';
|
||||
import { // eslint-disable-line import/no-cycle
|
||||
userActivityWebhook,
|
||||
} from '../../libs/webhook';
|
||||
@@ -198,6 +201,11 @@ schema.post('init', function postInitUser () {
|
||||
this.pushDevices = PushDevice.cleanupCorruptData(this.pushDevices);
|
||||
}
|
||||
|
||||
// Make sure tags are loaded
|
||||
if (this.isDirectSelected('tags')) {
|
||||
this.tags = Tag.cleanupCorruptData(this.tags);
|
||||
}
|
||||
|
||||
return true;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user