Skip to content

Commit 0c72796

Browse files
author
Ives van Hoorne
committed
Fix reverting of dir name
1 parent 410c2bd commit 0c72796

File tree

1 file changed

+1
-1
lines changed
  • packages/app/src/app/store/modules/files

1 file changed

+1
-1
lines changed

packages/app/src/app/store/modules/files/actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ export function revertModuleName({ state, props }) {
349349
export function revertDirectoryName({ state, props }) {
350350
const sandbox = state.get('editor.currentSandbox');
351351
const directoryIndex = sandbox.directories.findIndex(
352-
directory => directory.id === props.id
352+
directory => directory.shortid === props.directoryShortid
353353
);
354354

355355
state.set(

0 commit comments

Comments
 (0)