Skip to content

Commit

Permalink
fix(edgeless): edgeless-index-label has empty reference
Browse files Browse the repository at this point in the history
  • Loading branch information
doouding committed Apr 26, 2024
1 parent 5a9d124 commit 7992b2f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,9 @@ export class EdgelessBlockPortalContainer extends WithDisposable(
const reference = service.getElementById(
model.reference
) as AutoConnectElement;

if (!reference) return;

if (!pageVisibleBlocks.has(reference)) {
pageVisibleBlocks.set(reference, 1);
} else {
Expand Down

0 comments on commit 7992b2f

Please sign in to comment.