From a520f8a3cf06375c511a6190cbce11b9640740af Mon Sep 17 00:00:00 2001 From: Yves Rijckaert Date: Fri, 18 Oct 2024 12:22:40 +0200 Subject: [PATCH] fix: remove wrong sys check (#926) --- packages/live-preview-sdk/src/liveUpdates.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/packages/live-preview-sdk/src/liveUpdates.ts b/packages/live-preview-sdk/src/liveUpdates.ts index 0bb75da0..f96247ce 100644 --- a/packages/live-preview-sdk/src/liveUpdates.ts +++ b/packages/live-preview-sdk/src/liveUpdates.ts @@ -34,17 +34,6 @@ export class LiveUpdates { const subscription = this.subscriptions.get(subscriptionId); - if (!data.sys || !data.sys.id) { - debug.error( - 'Received an update with missing `sys.id`, please provide `sys.id` in order to enable live updates', - { - data, - subscriptionId, - }, - ); - return; - } - if (subscription) { subscription.callback(data); subscription.data = data;