Skip to content

Commit b8acf02

Browse files
authored
Fix adding new file through file explorer. Closes #2319 (#2321)
1 parent db1666f commit b8acf02

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

AzureFunctions.AngularClient/src/app/file-explorer/file-explorer.component.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -202,13 +202,15 @@ export class FileExplorerComponent extends FunctionAppContextComponent {
202202
this.refresh();
203203
this._aiService.trackEvent('/actions/file_explorer/create_directory');
204204
} else {
205-
const o = typeof r === 'string'
205+
const o = typeof r.result === 'string'
206206
? { name: this.newFileName, href: href, mime: 'file', mtime: Date.now.toString() }
207207
: r.result;
208208
if (typeof o !== 'string') {
209209
this.files.push(o);
210210
this.selectVfsObject(o, true);
211211
this._aiService.trackEvent('/actions/file_explorer/create_file');
212+
} else {
213+
this.clearBusyState();
212214
}
213215
}
214216
this.creatingNewFile = false;

0 commit comments

Comments
 (0)