@copart/ops-tool-kit 1.12.1-alpha.29 → 1.12.1-alpha.30

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.
@@ -32,7 +32,7 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
32
32
  var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
33
33
 
34
34
  const name$r = "@copart/ops-tool-kit";
35
- const version$7 = "1.12.1-alpha.29";
35
+ const version$7 = "1.12.1-alpha.30";
36
36
  const main$1 = "dist/ops-tool-kit.js";
37
37
  const style = "dist/ops-tool-kit.css";
38
38
  const files = [
@@ -36146,9 +36146,10 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
36146
36146
  } catch (e) {
36147
36147
  console.log('context parse error', e);
36148
36148
  }
36149
- if (!isEmpty$2(latestContext)) {
36150
- setCurrentContext(latestContext);
36151
- }
36149
+ // if (!isEmpty(latestContext)) {
36150
+ // setCurrentContext(latestContext)
36151
+ // }
36152
+ setCurrentContext(latestContext);
36152
36153
  } else {
36153
36154
  console.log('No context found');
36154
36155
  }
@@ -36162,6 +36163,8 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
36162
36163
  setFeedbacks(feedbacksToBeSaved);
36163
36164
  if (conversationsToBeSaved.length) {
36164
36165
  saveCurrentContext(conversationsToBeSaved);
36166
+ } else {
36167
+ setCurrentContext(null);
36165
36168
  }
36166
36169
  if (mihelpAgentRef && _typeof(mihelpAgentRef) === 'object') {
36167
36170
  mihelpAgentRef.current = {
@@ -36182,6 +36185,8 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
36182
36185
  setConversations(conversationsToBeSaved);
36183
36186
  if (conversationsToBeSaved.length) {
36184
36187
  saveCurrentContext(conversationsToBeSaved);
36188
+ } else {
36189
+ setCurrentContext(null);
36185
36190
  }
36186
36191
  }
36187
36192
  if (event.key === 'mihelpAgentFeedbacks') {
@@ -36368,6 +36373,7 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
36368
36373
  storage$1.setLocalItem('mihelpAgentConversations', []);
36369
36374
  storage$1.setLocalItem('mihelpAgentFeedbacks', {});
36370
36375
  setMessageError(false);
36376
+ setCurrentContext(null);
36371
36377
  };
36372
36378
  var updateFeedback = /*#__PURE__*/function () {
36373
36379
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(feedback, Currentconversation, conversations) {