From 2e3d210cfe72cb8211a1d1a09271652a7d4c9948 Mon Sep 17 00:00:00 2001 From: Benjamin Weder Date: Fri, 21 Jul 2023 13:41:33 +0200 Subject: [PATCH] Small fixes --- .../bpmn-q/modeler-component/editor/util/IoUtilities.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/bpmn-q/modeler-component/editor/util/IoUtilities.js b/components/bpmn-q/modeler-component/editor/util/IoUtilities.js index 3f2ef004..6bcbf24d 100644 --- a/components/bpmn-q/modeler-component/editor/util/IoUtilities.js +++ b/components/bpmn-q/modeler-component/editor/util/IoUtilities.js @@ -237,13 +237,11 @@ export function openInNewTab(workflowXml, fileName) { export function resetAutosaveTimeout(autosaveTimeout, hasChanges, autoSaveFileOption = editorConfig.getAutoSaveFileOption()) { clearTimeout(autosaveTimeout); - hasChanges = hasChanges; if (autoSaveFileOption === autoSaveFile.INTERVAL) { - autosaveTimeout = setTimeout(() => autosave(hasChanges), process.env.INTERVAL); + setTimeout(() => autosave(hasChanges), process.env.INTERVAL); } else { const timestamp = getTimestamp(); - console.log("los") saveModelerAsLocalFile(getModeler(), `autosave_${timestamp}_${editorConfig.getFileName()}`, saveFileFormats.BPMN, false); } }