@saltcorn/history-control 0.5.2 → 0.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/rowdiffview.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saltcorn/history-control",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "Allow users to interact with row history",
5
5
  "main": "index.js",
6
6
  "dependencies": {
package/rowdiffview.js CHANGED
@@ -159,7 +159,7 @@ const run = async (
159
159
  const refField = table.getField(jf.ref);
160
160
  const reftable = Table.findOne(refField.reftable_name);
161
161
  const rows = await reftable.getRows({
162
- id: { in: [...refVals] },
162
+ [reftable.pk_name]: { in: [...refVals] },
163
163
  });
164
164
  const rowsByVal = {};
165
165
  rows.forEach((r) => {