@copart/ops-tool-kit 1.10.6 → 1.10.8

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.
@@ -33,7 +33,7 @@ var ReactDOM__namespace = /*#__PURE__*/_interopNamespace(ReactDOM);
33
33
  var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
34
34
 
35
35
  const name$f = "@copart/ops-tool-kit";
36
- const version$5 = "1.10.6";
36
+ const version$5 = "1.10.8";
37
37
  const main$1 = "dist/ops-tool-kit.js";
38
38
  const style = "dist/ops-tool-kit.css";
39
39
  const files = [
@@ -6588,7 +6588,7 @@ function () {
6588
6588
  break;
6589
6589
  }
6590
6590
 
6591
- userAppScopes = storage.userAppScopes;
6591
+ userAppScopes = Array.isArray(storage.userAppScopes) ? storage.userAppScopes : [];
6592
6592
  allAppScopesAndFunctions = storage.appScopesAndFunctions;
6593
6593
  currentAppScopesAndFunctions = allAppScopesAndFunctions.find(function (scope) {
6594
6594
  return scope.appName === appName;
@@ -21479,7 +21479,7 @@ var hierarchies = {
21479
21479
 
21480
21480
  var getHierarchyDetails = function getHierarchyDetails(hierarchyId) {
21481
21481
  var hierarchy = hierarchies[hierarchyId.toString()];
21482
- var isHierarchyFromCurrentCountry = hierarchy.countryCode = storage.getSessionItem('dashboard', 'selectedCountryA3code');
21482
+ var isHierarchyFromCurrentCountry = hierarchy.countryCode === storage.getSessionItem('dashboard', 'selectedCountryA3code');
21483
21483
  return isHierarchyFromCurrentCountry ? {
21484
21484
  id: hierarchy.hierarchyId,
21485
21485
  level: hierarchy.levelName,
@@ -21489,7 +21489,7 @@ var getHierarchyDetails = function getHierarchyDetails(hierarchyId) {
21489
21489
 
21490
21490
  var getUserScopes = function getUserScopes() {
21491
21491
  var scopeData = storage.getLocalItem('login', 'entity_auth_scope');
21492
- var scopeList = scopeData.split(',');
21492
+ var scopeList = typeof scopeData === 'string' ? scopeData === null || scopeData === void 0 ? void 0 : scopeData.split(',') : [];
21493
21493
  var filteredScopeList = [];
21494
21494
  scopeList.forEach(function (scope) {
21495
21495
  var scopeInfo = scope.split('|');