Commit 25e5e7fe authored by Robert Knight's avatar Robert Knight

Adapt to ES module conversion

This import should be hoisted to the top level of the module but a naive change to do this did not work. I suspect this relates to the circular nature of the
import, but it needs investigating. This change enables the code to
continue working until then.
parent f0abe041
......@@ -94,7 +94,8 @@ function createDraft(annotation, changes) {
*/
function deleteNewAndEmptyDrafts() {
const annotations = require('./annotations');
const { default: annotations } = require('./annotations');
return (dispatch, getState) => {
const newDrafts = getState().drafts.filter(draft => {
return (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment