@malago
I noticed an error: Uncaught (in promise) TypeError: Cannot read properties of null (reading 'new_achievements')
When I click the notifications icon on the header-navigation and click v (Mask All as Read), I see an error in the js line
Uncaught (in promise) TypeError: Cannot read properties of null (reading 'new_achievements')
at index.js:120:25
2 images before click and after click


JS: index.js:120:25
extend(Application.prototype, 'request', function (promise) {
if (promise) {
promise.then(function (data) {
if (typeof data.new_achievements === "string") <<<< ERROR LINE 120
data.new_achievements = JSON.parse(data.new_achievements);
if (data && data.new_achievements !== undefined && data.new_achievements !== null && data.new_achievements.length > 0) {
app.modal.show(NewAchievementModal, { achievements: data.new_achievements });
}
});
}
CHECK : \vendor\malago\flarum-achievements\js\src\forum\index.js line 117-128
extend(Application.prototype, 'request', function (promise) {
if (promise) {
promise.then(function (data) {
if (typeof data.new_achievements === "string")
data.new_achievements = JSON.parse(data.new_achievements);
if (data && data.new_achievements !== undefined && data.new_achievements !== null && data.new_achievements.length > 0) {
app.modal.show(NewAchievementModal, { achievements: data.new_achievements });
}
});
}
});