Skip to content

Commit c139bfb

Browse files
committed
fix: file>new folder create and then file creation work again
1 parent 9139b1f commit c139bfb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/document/DocumentCommandHandlers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ define(function (require, exports, module) {
760760
function createWithSuggestedName(suggestedName) {
761761
return ProjectManager.createNewItem(baseDirEntry, suggestedName, false, isFolder)
762762
.done(function (fileOrStatus) {
763-
if(!(typeof fileOrStatus === 'object' && fileOrStatus.fullPath)){
763+
if(!(typeof fileOrStatus === 'object' && fileOrStatus.isFile && fileOrStatus.fullPath)){
764764
return;
765765
}
766766
DocumentManager.getDocumentForPath(fileOrStatus.fullPath)

0 commit comments

Comments
 (0)