Account for draft being published. Need to reload the collection still in this scenario
This commit is contained in:
@ -156,6 +156,9 @@ class Collection extends BaseModel {
|
||||
}
|
||||
}
|
||||
);
|
||||
this.on('documents.publish', (data: { collectionId: string }) => {
|
||||
if (data.collectionId === this.id) this.fetch();
|
||||
});
|
||||
this.on('documents.move', (data: { collectionId: string }) => {
|
||||
if (data.collectionId === this.id) this.fetch();
|
||||
});
|
||||
|
Reference in New Issue
Block a user