Skip to content

Commit 4c1169f

Browse files
authored
HandleNewProject shouldn't require a project (#103)
1 parent 79ae2e0 commit 4c1169f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reactComponents/ModuleOutline.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ export default function ModuleOutline(props: ModuleOutlineProps) {
341341
}
342342
}
343343
const handleNewProjectNameOk = async (newProjectClassName: string) => {
344-
if (!props.storage || !props.currentModule) {
344+
if (!props.storage) {
345345
return;
346346
}
347347
const newProjectName = commonStorage.classNameToModuleName(newProjectClassName);

0 commit comments

Comments
 (0)