@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.cjs.js CHANGED
@@ -4120,8 +4120,8 @@ function initiateWebsocket({ TABLES = undefined, WsLiveUpdates = undefined, url
4120
4120
  for (const element of primaryKeyKeys) {
4121
4121
  // remove the table name from the column name
4122
4122
  const column = element.split('.')[1];
4123
- console.log('column', column, REQUEST_PRIMARY_KEY[column], row[column]);
4124
- if (REQUEST_PRIMARY_KEY[column] !== row[column]) {
4123
+ console.log('column', column, REQUEST_PRIMARY_KEY[element], row[column]);
4124
+ if (REQUEST_PRIMARY_KEY[element] !== row[column]) {
4125
4125
  return false;
4126
4126
  }
4127
4127
  }
@@ -4138,8 +4138,9 @@ function initiateWebsocket({ TABLES = undefined, WsLiveUpdates = undefined, url
4138
4138
  ...REQUEST
4139
4139
  };
4140
4140
  });
4141
- console.log('updatedElements', updatedElements);
4142
- WsLiveUpdates[TABLE_NAME_SHORT][METHOD]({}, updatedElements);
4141
+ updatedElements.forEach((row) => {
4142
+ WsLiveUpdates[TABLE_NAME_SHORT][METHOD]({}, row);
4143
+ });
4143
4144
  }
4144
4145
  });
4145
4146
  };