Skip to content

Commit

Permalink
fix: editor file update
Browse files Browse the repository at this point in the history
  • Loading branch information
devcatalin committed Apr 27, 2023
1 parent 0d59952 commit 7f9e740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editor/CodeEditor/handleCodeChanges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const debouncedCodeSave = debounce(
// is a file and no resource selected?
if (selectedPath && !selectedResourceIdentifier) {
try {
dispatch(updateFileEntry({path: selectedPath, text: code}));
dispatch(updateFileEntry({path: selectedPath, text: code, isUpdateFromEditor: true}));
return true;
} catch (e) {
log.warn(`Failed to update file ${e}`);
Expand Down

0 comments on commit 7f9e740

Please sign in to comment.