@carbonorm/carbonreact 3.5.3 → 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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbonorm/carbonreact",
3
3
  "license": "MIT",
4
- "version": "3.5.3",
4
+ "version": "3.5.4",
5
5
  "browser": "dist/index.umd.js",
6
6
  "module": "dist/index.esm.js",
7
7
  "main": "dist/index.cjs.js",
@@ -115,7 +115,7 @@ export function initiateWebsocket({
115
115
 
116
116
  const METHOD: string = parsedData?.REST?.METHOD;
117
117
 
118
- const REQUEST: { [key:string]: any } = parsedData?.REST?.REQUEST;
118
+ const REQUEST: { [key: string]: any } = parsedData?.REST?.REQUEST;
119
119
 
120
120
  const REQUEST_PRIMARY_KEY: {
121
121
  [key: string]: string
@@ -186,9 +186,9 @@ export function initiateWebsocket({
186
186
 
187
187
  })
188
188
 
189
- console.log('updatedElements', updatedElements)
190
-
191
- WsLiveUpdates[TABLE_NAME_SHORT][METHOD]({}, updatedElements)
189
+ updatedElements.forEach((row: any) => {
190
+ WsLiveUpdates[TABLE_NAME_SHORT][METHOD]({}, row)
191
+ })
192
192
 
193
193
  }
194
194