diff --git a/client/modules/IDE/actions/files.js b/client/modules/IDE/actions/files.js index 81b7febc..99fd5e58 100644 --- a/client/modules/IDE/actions/files.js +++ b/client/modules/IDE/actions/files.js @@ -137,8 +137,8 @@ export function createFolder(formProps) { export function updateFileName(id, name, updatedName = '') { return (dispatch) => { - // Notify Changes if necessary - // Update the Filename + if (name !== updatedName) dispatch(setUnsavedChanges(true)); + dispatch({ type: ActionTypes.UPDATE_FILE_NAME, id,