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 authored Sep 19, 2024
1 parent fe3898c commit 86c68d8
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 86c68d8

Please sign in to comment.