Skip to content

Commit fea8e9c

Browse files
committed
fix set argument order
1 parent c661e8f commit fea8e9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/src/modules/templates/TemplateFiles/TemplateFiles.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const TemplateFiles: FC<TemplateFilesProps> = ({
5050
const tree: FileTree = {};
5151
for (const filename of Object.keys(currentFiles)) {
5252
const info = fileInfo(filename);
53-
set(filename.split("/"), info.value, tree);
53+
set(tree, filename.split("/"), info.value);
5454
}
5555
return tree;
5656
}, [fileInfo, currentFiles]);

0 commit comments

Comments
 (0)