KeyError during reference edit API call
Currently any changes to the reference by the edit icon or reference-specific settings results in a `PATCH /api/refs/:refId 500 (Internal Server Error)`, but on page reload shows that changes have been successful 
diff --git a/virtool/api/references.py b/virtool/api/references.py
index a99f6d997..04668e750 100644
--- a/virtool/api/references.py
+++ b/virtool/api/references.py
@@ -395,7 +395,7 @@ async def edit(req):
 
     document = virtool.utils.base_processor(document)
 
-    document.update(await virtool.db.references.get_computed(db, document["_id"], internal_control_id))
+    document.update(await virtool.db.references.get_computed(db, ref_id, internal_control_id))
 
     return json_response(document)
 
['virtool/api/references.py']