Skip to content

Commit 434cf6d

Browse files
committed
🐛 make filename changes trigger editor change detection
1 parent 5df76c2 commit 434cf6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/modules/IDE/actions/files.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ export function createFolder(formProps) {
137137

138138
export function updateFileName(id, name, updatedName = '') {
139139
return (dispatch) => {
140-
// Notify Changes if necessary
141-
// Update the Filename
140+
if (name !== updatedName) dispatch(setUnsavedChanges(true));
141+
142142
dispatch({
143143
type: ActionTypes.UPDATE_FILE_NAME,
144144
id,

0 commit comments

Comments
 (0)