tuain-ng-forms-lib 0.12.13 → 0.12.14

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.
@@ -3068,7 +3068,8 @@
3068
3068
  return;
3069
3069
  }
3070
3070
  var _a = prevForm.origin, url = _a.url, params = _a.params, token = _a.token;
3071
- var navigationArray = __spreadArray(__spreadArray([url], __read(params)), [token]);
3071
+ var navigationArray = __spreadArray([url], __read(params));
3072
+ token && navigationArray.push(token);
3072
3073
  this.goToRoute(navigationArray);
3073
3074
  };
3074
3075
  return LibFormManagerService;
@@ -3322,12 +3323,8 @@
3322
3323
  var origin = null;
3323
3324
  var cleanStack = (_a = options === null || options === void 0 ? void 0 : options.cleanStack) !== null && _a !== void 0 ? _a : false;
3324
3325
  var params = [];
3325
- if (this.currentState) {
3326
- params.push(this.currentState);
3327
- }
3328
- if (this.formSubject) {
3329
- params.push(this.formSubject);
3330
- }
3326
+ this.currentState && params.push(this.currentState);
3327
+ this.formSubject && params.push(this.formSubject);
3331
3328
  if (!cleanStack) {
3332
3329
  origin = {
3333
3330
  code: this.name,