Skip to content

Commit

Permalink
Removed resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
Ratatinator97 committed Jun 10, 2024
1 parent 65585fa commit f86b39a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions components/navigation/pictalk-navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,10 @@ export default {
}
}
},
async getNotificationImage(notification) {
const collection = await this.getCollectionFromId(parseInt(notification.affected, 10));
return collection?.image;
},
notificationGoToCollectionOrReturn(notification) {
if (
notification.operation == "unshare" ||
Expand Down
2 changes: 0 additions & 2 deletions store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,6 @@ export const actions = {
if (notificationsRequest.status !== 200) return;

const notifications = notificationsRequest.data;
console.log(notifications)
if (notifications?.length != vuexContext.getters.getUser.notifications.length) {
vuexContext.dispatch("downloadCollections");
}
Expand All @@ -775,7 +774,6 @@ export const actions = {
}
notification.image = (await getCollectionFromId(vuexContext, parseInt(notification.affected, 10)))?.image;
}
resolve();
}
});
// Mettre les notifications dans user
Expand Down

0 comments on commit f86b39a

Please sign in to comment.