@carbonorm/carbonreact 3.5.2 → 3.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -4118,8 +4118,8 @@ function initiateWebsocket({ TABLES = undefined, WsLiveUpdates = undefined, url
4118
4118
  for (const element of primaryKeyKeys) {
4119
4119
  // remove the table name from the column name
4120
4120
  const column = element.split('.')[1];
4121
- console.log('column', column, REQUEST_PRIMARY_KEY[column], row[column]);
4122
- if (REQUEST_PRIMARY_KEY[column] !== row[column]) {
4121
+ console.log('column', column, REQUEST_PRIMARY_KEY[element], row[column]);
4122
+ if (REQUEST_PRIMARY_KEY[element] !== row[column]) {
4123
4123
  return false;
4124
4124
  }
4125
4125
  }
@@ -4136,8 +4136,9 @@ function initiateWebsocket({ TABLES = undefined, WsLiveUpdates = undefined, url
4136
4136
  ...REQUEST
4137
4137
  };
4138
4138
  });
4139
- console.log('updatedElements', updatedElements);
4140
- WsLiveUpdates[TABLE_NAME_SHORT][METHOD]({}, updatedElements);
4139
+ updatedElements.forEach((row) => {
4140
+ WsLiveUpdates[TABLE_NAME_SHORT][METHOD]({}, row);
4141
+ });
4141
4142
  }
4142
4143
  });
4143
4144
  };