Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wederbn committed Jul 21, 2023
1 parent bd6445c commit 2e3d210
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 2e3d210

Please sign in to comment.