From 0f58fb94f82196bca1328d180bc6eb4929e6096e Mon Sep 17 00:00:00 2001 From: Shashank Budhanuru Ramaraju Date: Tue, 12 Sep 2023 09:52:54 +0100 Subject: [PATCH] change --- .../apollo-shared/src/Changes/DiscontinuousLocationChange.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/apollo-shared/src/Changes/DiscontinuousLocationChange.ts b/packages/apollo-shared/src/Changes/DiscontinuousLocationChange.ts index 62da4623d..8116ace51 100644 --- a/packages/apollo-shared/src/Changes/DiscontinuousLocationChange.ts +++ b/packages/apollo-shared/src/Changes/DiscontinuousLocationChange.ts @@ -124,13 +124,10 @@ export class DiscontinuousLocationChange extends FeatureChange { if (!feature) { throw new Error(`Could not find feature with identifier "${changedId}"`) } - const change = this.changes[idx] - const { end, start } = change - + const { end, start } = this.changes[idx] if (start) { feature.setCDSDiscontinuousLocationStart(start.newStart, start.index) } - if (end) { feature.setCDSDiscontinuousLocationEnd(end.newEnd, end.index) }