PR feedback, remove collectionId
This commit is contained in:
@@ -20,7 +20,6 @@ class Document extends BaseModel {
|
||||
|
||||
collaborators: Array<User>;
|
||||
collection: $Shape<Collection>;
|
||||
collectionId: string;
|
||||
firstViewedAt: ?string;
|
||||
lastViewedAt: ?string;
|
||||
modifiedSinceViewed: ?boolean;
|
||||
|
||||
@@ -56,7 +56,7 @@ class DocumentsStore extends BaseStore {
|
||||
return _.orderBy(
|
||||
_.filter(
|
||||
this.data.values(),
|
||||
document => document.collectionId === collectionId
|
||||
document => document.collection.id === collectionId
|
||||
),
|
||||
'updatedAt',
|
||||
'desc'
|
||||
|
||||
Reference in New Issue
Block a user