Skip to content

Commit

Permalink
fix: remove wrong sys check (#926)
Browse files Browse the repository at this point in the history
  • Loading branch information
YvesRijckaert authored Oct 18, 2024
1 parent 99360ee commit a520f8a
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions packages/live-preview-sdk/src/liveUpdates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a520f8a

Please sign in to comment.