Skip to content

Commit

Permalink
handle fully null case as well
Browse files Browse the repository at this point in the history
  • Loading branch information
jwunderl committed Sep 19, 2024
1 parent fe3898c commit 4644d3e
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 4644d3e

Please sign in to comment.