fix: Path to collection from notification UI

This commit is contained in:
Tom Moor
2024-01-31 18:35:25 -05:00
parent fb711a1db8
commit 4800b60825

View File

@@ -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: {