@carbonorm/carbonreact 3.5.2 → 3.5.3
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
|
@@ -156,9 +156,9 @@ export function initiateWebsocket({
|
|
|
156
156
|
// remove the table name from the column name
|
|
157
157
|
const column = element.split('.')[1]
|
|
158
158
|
|
|
159
|
-
console.log('column', column, REQUEST_PRIMARY_KEY[
|
|
159
|
+
console.log('column', column, REQUEST_PRIMARY_KEY[element], row[column])
|
|
160
160
|
|
|
161
|
-
if (REQUEST_PRIMARY_KEY[
|
|
161
|
+
if (REQUEST_PRIMARY_KEY[element] !== row[column]) {
|
|
162
162
|
|
|
163
163
|
return false
|
|
164
164
|
|
|
@@ -178,10 +178,12 @@ export function initiateWebsocket({
|
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
const updatedElements = elementsToUpdate.map((row: any) => {
|
|
181
|
+
|
|
181
182
|
return {
|
|
182
183
|
...row,
|
|
183
184
|
...REQUEST
|
|
184
185
|
}
|
|
186
|
+
|
|
185
187
|
})
|
|
186
188
|
|
|
187
189
|
console.log('updatedElements', updatedElements)
|