fix: Error receiving document update for non-preloaded collection
This commit is contained in:
@@ -165,7 +165,7 @@ export default class Collection extends ParanoidModel {
|
|||||||
@action
|
@action
|
||||||
removeDocument(documentId: string) {
|
removeDocument(documentId: string) {
|
||||||
if (!this.documents) {
|
if (!this.documents) {
|
||||||
throw new Error("Collection documents not loaded");
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.documents = this.documents.filter(function f(node): boolean {
|
this.documents = this.documents.filter(function f(node): boolean {
|
||||||
|
|||||||
Reference in New Issue
Block a user