Skip to content

Commit

Permalink
fix: Check if the correct workspace is null.
Browse files Browse the repository at this point in the history
  • Loading branch information
gonfunko committed Sep 27, 2024
1 parent e76bf2b commit 147f7a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/widgetdiv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export function hideIfOwner(oldOwner: unknown) {
* @param workspace The workspace that was using this container.
*/
export function hideIfOwnerIsInWorkspace(workspace: WorkspaceSvg) {
let ownerIsInWorkspace = workspace === null;
let ownerIsInWorkspace = this.ownerWorkspace === null;

Check failure on line 172 in core/widgetdiv.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected 'this'

Check failure on line 172 in core/widgetdiv.ts

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, 18.x)

'this' implicitly has type 'any' because it does not have a type annotation.

Check failure on line 172 in core/widgetdiv.ts

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, 20.x)

'this' implicitly has type 'any' because it does not have a type annotation.

Check failure on line 172 in core/widgetdiv.ts

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, 22.4.1)

'this' implicitly has type 'any' because it does not have a type annotation.
// Check if the given workspace is a parent workspace of the one containing
// our owner.
let currentWorkspace: WorkspaceSvg | null = workspace;
Expand Down

0 comments on commit 147f7a6

Please sign in to comment.