Skip to content

Commit

Permalink
fix: sentry errors (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimniels committed Jun 19, 2023
1 parent cd09b64 commit fa7387b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/grid/controller/sheetController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export class SheetController {

if (this.app) {
if (transaction.cursor) {
this.app.settings.setInteractionState(transaction.cursor);
this.app.settings.setInteractionState?.(transaction.cursor);
}

// TODO: The transaction should keep track of everything that becomes dirty while executing and then just sets the correct flags on app.
Expand Down Expand Up @@ -195,7 +195,7 @@ export class SheetController {

if (this.app) {
if (transaction.cursor) {
this.app.settings.setInteractionState(transaction.cursor);
this.app.settings.setInteractionState?.(transaction.cursor);
}

// TODO: The transaction should keep track of everything that becomes dirty while executing and then just sets the correct flags on app.
Expand Down
2 changes: 1 addition & 1 deletion src/gridGL/pixiApp/PixiApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export class PixiApp {
this.viewport.position.set(0, 0);
}
this.settings.setEditorInteractionState?.(editorInteractionStateDefault);
this.settings.setInteractionState(gridInteractionStateDefault);
this.settings.setInteractionState?.(gridInteractionStateDefault);
}

// Pre-renders quadrants by cycling through one quadrant per frame
Expand Down

1 comment on commit fa7387b

@vercel
Copy link

@vercel vercel bot commented on fa7387b Jun 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

quadratic – ./

quadratic-quadratic.vercel.app
quadratic-nu.vercel.app
quadratic-git-main-quadratic.vercel.app

Please sign in to comment.