From b9df03628c4ff9e4bdcd7705461c91deb2c7e86a Mon Sep 17 00:00:00 2001 From: Musterknabe <362391+musterknabe@users.noreply.github.com> Date: Wed, 20 Aug 2025 13:26:23 +0200 Subject: [PATCH] Fix regression in popup.ts to handle falsey offsets gracefully --- src/ui/popup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/popup.ts b/src/ui/popup.ts index 4d98b42261b..4cb50f1d2d7 100644 --- a/src/ui/popup.ts +++ b/src/ui/popup.ts @@ -719,5 +719,5 @@ function normalizeOffset(offset: Offset = new Point(0, 0), anchor: Anchor = 'bot } // input specifies an offset per position - return Point.convert(offset[anchor] || [0, 0]); + return Point.convert(offset?.[anchor] ?? [0, 0]); }