@etsoo/appscript 1.2.18 → 1.2.19

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.
@@ -650,7 +650,7 @@ class CoreApp {
650
650
  * @param forceToLocal Force to local labels
651
651
  */
652
652
  formatResult(result, forceToLocal) {
653
- var _a, _b;
653
+ var _a;
654
654
  const title = result.title;
655
655
  if (title && /^\w+$/.test(title)) {
656
656
  const key = title.formatInitial(false);
@@ -671,7 +671,7 @@ class CoreApp {
671
671
  if (result.field && ((_a = result.title) === null || _a === void 0 ? void 0 : _a.includes('{0}'))) {
672
672
  const fieldLabel = this.get(result.field.formatInitial(false));
673
673
  if (fieldLabel)
674
- (_b = result.title) === null || _b === void 0 ? void 0 : _b.format(fieldLabel);
674
+ result.title = result.title.format(fieldLabel);
675
675
  }
676
676
  }
677
677
  /**
@@ -647,7 +647,7 @@ export class CoreApp {
647
647
  * @param forceToLocal Force to local labels
648
648
  */
649
649
  formatResult(result, forceToLocal) {
650
- var _a, _b;
650
+ var _a;
651
651
  const title = result.title;
652
652
  if (title && /^\w+$/.test(title)) {
653
653
  const key = title.formatInitial(false);
@@ -668,7 +668,7 @@ export class CoreApp {
668
668
  if (result.field && ((_a = result.title) === null || _a === void 0 ? void 0 : _a.includes('{0}'))) {
669
669
  const fieldLabel = this.get(result.field.formatInitial(false));
670
670
  if (fieldLabel)
671
- (_b = result.title) === null || _b === void 0 ? void 0 : _b.format(fieldLabel);
671
+ result.title = result.title.format(fieldLabel);
672
672
  }
673
673
  }
674
674
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.2.18",
3
+ "version": "1.2.19",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -1335,7 +1335,7 @@ export abstract class CoreApp<
1335
1335
  // When title contains {0}, replace with the field label
1336
1336
  if (result.field && result.title?.includes('{0}')) {
1337
1337
  const fieldLabel = this.get(result.field.formatInitial(false));
1338
- if (fieldLabel) result.title?.format(fieldLabel);
1338
+ if (fieldLabel) result.title = result.title.format(fieldLabel);
1339
1339
  }
1340
1340
  }
1341
1341