@ronin/compiler 0.11.0-leo-ron-1083-experimental-226 → 0.11.0-leo-ron-1083-experimental-227

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1616,16 +1616,16 @@ var Transaction = class {
1616
1616
  newValue = Boolean(value);
1617
1617
  }
1618
1618
  const parentFieldSlug = field.parentField;
1619
+ let usableRowIndex = rowIndex;
1619
1620
  if (parentFieldSlug) {
1620
1621
  if (rows.length === 1) {
1621
1622
  newSlug = `${parentFieldSlug}.${field.slug}`;
1622
1623
  } else {
1623
- const fieldPath = `${parentFieldSlug}[${rowIndex}].${field.slug}`;
1624
- records[0] = setProperty(records[0], fieldPath, newValue);
1625
- continue;
1624
+ newSlug = `${parentFieldSlug}[${rowIndex}].${field.slug}`;
1625
+ usableRowIndex = 0;
1626
1626
  }
1627
1627
  }
1628
- records[rowIndex] = setProperty(records[rowIndex], newSlug, newValue);
1628
+ records[usableRowIndex] = setProperty(records[usableRowIndex], newSlug, newValue);
1629
1629
  }
1630
1630
  }
1631
1631
  return single ? records[0] : records;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ronin/compiler",
3
- "version": "0.11.0-leo-ron-1083-experimental-226",
3
+ "version": "0.11.0-leo-ron-1083-experimental-227",
4
4
  "type": "module",
5
5
  "description": "Compiles RONIN queries to SQL statements.",
6
6
  "publishConfig": {