From aeb85c6b1c6f978b7cbcb76a36c8108d8815a7f1 Mon Sep 17 00:00:00 2001 From: moklick Date: Tue, 22 Mar 2022 11:51:56 +0100 Subject: [PATCH] refactor(nodeExtent): use global nodeExtent when parent extent is used incorrectly --- src/store/utils.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/store/utils.ts b/src/store/utils.ts index 85b50996..0cc8ba3c 100644 --- a/src/store/utils.ts +++ b/src/store/utils.ts @@ -16,7 +16,6 @@ import { XYZPosition, FitViewOptions, } from '../types'; -import { infiniteExtent } from './initialState'; type ParentNodes = Record; @@ -143,7 +142,7 @@ export function createPositionChange({ : currentExtent; } else { console.warn('Only child nodes can use parent extent'); - currentExtent = infiniteExtent; + currentExtent = nodeExtent; } }