🐛 make filename changes trigger editor change detection
This commit is contained in:
parent
5df76c249a
commit
434cf6da21
1 changed files with 2 additions and 2 deletions
|
@ -137,8 +137,8 @@ export function createFolder(formProps) {
|
||||||
|
|
||||||
export function updateFileName(id, name, updatedName = '') {
|
export function updateFileName(id, name, updatedName = '') {
|
||||||
return (dispatch) => {
|
return (dispatch) => {
|
||||||
// Notify Changes if necessary
|
if (name !== updatedName) dispatch(setUnsavedChanges(true));
|
||||||
// Update the Filename
|
|
||||||
dispatch({
|
dispatch({
|
||||||
type: ActionTypes.UPDATE_FILE_NAME,
|
type: ActionTypes.UPDATE_FILE_NAME,
|
||||||
id,
|
id,
|
||||||
|
|
Loading…
Reference in a new issue