@hivegpt/hiveai-angular 0.0.221 → 0.0.223

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.
@@ -1117,6 +1117,7 @@
1117
1117
  if (msg === void 0) { msg = null; }
1118
1118
  var _a;
1119
1119
  this.input = msg || ((_a = this.input) === null || _a === void 0 ? void 0 : _a.trim());
1120
+ this.msg = this.input;
1120
1121
  if (!this.input || this.loading) {
1121
1122
  return;
1122
1123
  }
@@ -1158,14 +1159,15 @@
1158
1159
  .then(function (response) {
1159
1160
  if (response.status === 401 || response.status === 403) {
1160
1161
  _this.is401 = true;
1161
- _this.msg = _this.input;
1162
1162
  _this.refreshToken.emit();
1163
1163
  }
1164
+ else {
1165
+ _this.is401 = false;
1166
+ }
1164
1167
  return response.json(); // Continue processing the response
1165
1168
  })
1166
1169
  .then(function (data) {
1167
1170
  // Handle the response data
1168
- _this.is401 = false;
1169
1171
  console.log(data);
1170
1172
  })
1171
1173
  .catch(function (err) {
@@ -1222,11 +1224,13 @@
1222
1224
  _this.isFetchDataFor = true;
1223
1225
  _this.refreshToken.emit();
1224
1226
  }
1227
+ else {
1228
+ _this.is401 = false;
1229
+ }
1225
1230
  return response.json(); // Continue processing the response
1226
1231
  })
1227
1232
  .then(function (data) {
1228
1233
  // Handle the response data
1229
- _this.is401 = false;
1230
1234
  console.log(data);
1231
1235
  })
1232
1236
  .catch(function (err) {