Skip to content

Commit f1c1d63

Browse files
author
Ives van Hoorne
committed
Fix renaming modules
1 parent fa64f11 commit f1c1d63

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

packages/common/sandbox/modules.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,10 @@ export const getModulePath = memoize(
171171
}
172172
return `${path}${module.title}`;
173173
},
174-
(modules, directories, id) => {
175-
return (
176-
id +
177-
modules.map(m => m.id).join(',') +
178-
directories.map(d => d.id).join(',')
179-
);
180-
}
174+
(modules, directories, id) =>
175+
id +
176+
modules.map(m => m.id + m.title + m.directoryShortid).join(',') +
177+
directories.map(d => d.id + d.title + d.directoryShortid).join(',')
181178
);
182179

183180
export const isMainModule = (

0 commit comments

Comments
 (0)