From aae4a2870229a9f3a64d7ff521a38775f2f22c0d Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Sun, 9 Apr 2023 21:56:14 +0200 Subject: [PATCH] chore(core): cleanup condition Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> --- packages/core/src/utils/drag.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/utils/drag.ts b/packages/core/src/utils/drag.ts index 16762b92..62c8cae2 100644 --- a/packages/core/src/utils/drag.ts +++ b/packages/core/src/utils/drag.ts @@ -124,7 +124,7 @@ export function getExtent( currentExtent = extent } - } else if (Array.isArray(currentExtent) && currentExtent) { + } else if (Array.isArray(currentExtent)) { const parentX = parent?.computedPosition.x || 0 const parentY = parent?.computedPosition.y || 0