diff --git a/packages/plugins/Export/src/store/actions.ts b/packages/plugins/Export/src/store/actions.ts index 9a7705456..465415657 100644 --- a/packages/plugins/Export/src/store/actions.ts +++ b/packages/plugins/Export/src/store/actions.ts @@ -1,6 +1,5 @@ import { jsPDF } from 'jspdf' import { PolarActionTree } from '@polar/lib-custom-types' -import { Interaction } from 'ol/interaction' import { ExportFormat, ExportGetters, ExportState } from '../types' const actions: PolarActionTree = { @@ -26,10 +25,7 @@ const actions: PolarActionTree = { // Screenshot canvas const CANVAS_ID = 'export-canvas' - const disabledInteractions: Array = [] - map.getInteractions().forEach((interaction) => { - disabledInteractions.push(interaction) interaction.setActive(false) }) @@ -110,7 +106,7 @@ const actions: PolarActionTree = { } } - disabledInteractions.forEach((interaction) => { + map.getInteractions().forEach((interaction) => { interaction.setActive(true) })