Skip to content

Commit

Permalink
clean block definitions before attempting to upgrade blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
riknoll committed Sep 5, 2024
1 parent 1ba2306 commit 615783d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webapp/src/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,7 @@ export function applyUpgradesAsync(): Promise<UpgradeResult> {
}

function upgradeFromBlocksAsync(): Promise<UpgradeResult> {
pxtblockly.cleanBlocks();
const mainPkg = pkg.mainPkg;
const project = pkg.getEditorPkg(mainPkg);
const targetVersion = project.header.targetVersion;
Expand Down

0 comments on commit 615783d

Please sign in to comment.