From 4800b60825d628bcc23360953945b6ddd806b391 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 31 Jan 2024 18:35:25 -0500 Subject: [PATCH] fix: Path to collection from notification UI --- app/models/Notification.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/Notification.ts b/app/models/Notification.ts index 2c6c66b23..e22c8bb17 100644 --- a/app/models/Notification.ts +++ b/app/models/Notification.ts @@ -164,9 +164,9 @@ class Notification extends Model { case NotificationEventType.AddUserToCollection: case NotificationEventType.CreateCollection: { const collection = this.collectionId - ? this.store.rootStore.documents.get(this.collectionId) + ? this.store.rootStore.collections.get(this.collectionId) : undefined; - return collection ? collectionPath(collection.path) : ""; + return collection ? collectionPath(collection.url) : ""; } case NotificationEventType.AddUserToDocument: case NotificationEventType.MentionedInDocument: {