Skip to content

Commit 8edc98c

Browse files
author
Ives van Hoorne
committed
Fix parent
1 parent ab0f782 commit 8edc98c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sandbox/utils/resolve-module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default (
2626

2727
if (pathPart === '..') {
2828
// Find the parent
29-
const dir = directories.find(d => d.id === dirId);
29+
const dir = directories.find(d => d.shortid === dirId);
3030
if (dir == null) throw new Error(`Cannot find module in ${path}`);
3131

3232
return dir.directoryShortid;

0 commit comments

Comments
 (0)