Skip to content

Commit

Permalink
handle fully null case as well (#10194)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwunderl committed Sep 19, 2024
1 parent 39e10a8 commit f3f5755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/fileworkspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function setApiAsync(f: (path: string, data?: any) => Promise<any>) {
function getAsync(h: Header) {
return apiAsync("pkg/" + h.path)
.then((resp: pxt.FsPkg) => {
if (!resp.files) {
if (!resp?.files) {
return undefined;
}
let r: pxt.workspace.File = {
Expand Down

0 comments on commit f3f5755

Please sign in to comment.