Skip to content

Commit

Permalink
some bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
munteannatan committed Mar 26, 2024
1 parent 32cb91d commit 1404e0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ export class Computations {
}

public updateScales(): void {
if (this._containerDimensions === undefined) {
this.updateContainerDimensions();
return;
}
const containerDiameter = Math.min(
this._containerDimensions.width,
this._containerDimensions.height
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ export class WaferMapUpdateTracker extends UpdateTracker<typeof trackedItems> {
}
if (!this.updateQueued) {
this.updateQueued = true;
DOM.queueUpdate(() => {
void this.wafermap.update();
DOM.queueUpdate(async () => {
await this.wafermap.update();
this.untrackAll();
this.updateQueued = false;
});
Expand Down

0 comments on commit 1404e0c

Please sign in to comment.