mirror of
https://github.com/outline/outline.git
synced 2026-11-29 00:29:36 +03:00
fix: Invariant violation with addToArchive called with non-model (#9672)
This commit is contained in:
1 parent
ccac9379ca
commit
697bca9932
1 file changed
+2
-1
@@ -285,7 +285,8 @@ class WebsocketProvider extends Component<Props> {
|
||||
this.socket.on(
|
||||
"documents.archive",
|
||||
action((event: PartialExcept<Document, "id">) => {
|
||||
documents.addToArchive(event as Document);
|
||||
const model = documents.add(event);
|
||||
documents.addToArchive(model);
|
||||
|
||||
if (event.collectionId) {
|
||||
const collection = collections.get(event.collectionId);
|
||||
|
||||
Reference in new issue
Block a user