@copart/ops-tool-kit 1.8.1-alpha.40 → 1.8.1-alpha.41

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.8.1-alpha.40";
36
+ const version$5 = "1.8.1-alpha.41";
37
37
  const main$1 = "dist/ops-tool-kit.js";
38
38
  const style = "dist/ops-tool-kit.css";
39
39
  const files = [
@@ -35417,7 +35417,7 @@ var notificationKeysMapper = {
35417
35417
  var renameKeys = function renameKeys(keysMap) {
35418
35418
  return function (obj) {
35419
35419
  obj.isFirebase = true;
35420
- obj.uuid = parseInt(obj.uuid);
35420
+ obj.uuid = parseInt(obj.uuid) || obj.uuid;
35421
35421
  return reduce$1(function (acc, key) {
35422
35422
  return assoc$1(keysMap[key] || key, obj[key], acc);
35423
35423
  }, {}, keys$1(obj));
@@ -40409,11 +40409,13 @@ var AppBar = function AppBar(_ref) {
40409
40409
  React.useEffect(function () {
40410
40410
  setNotifications([]);
40411
40411
  setListOfAllNotifications([]);
40412
+ setListOfAllFirebaseNotifications([]);
40412
40413
  socketClient && socketClient.close();
40413
40414
 
40414
40415
  if (coreAppConfig && coreAppConfig.tiles) {
40416
+ var currentApp = window.location.pathname === '/' ? 'Ops Home' : window.location.pathname;
40415
40417
  var currentTile = history.location.pathname !== '/login' && coreAppConfig.tiles.find(function (tile) {
40416
- return tile.path === window.location.pathname;
40418
+ return tile.path === window.location.pathname || "".concat(tile.path, "/") === currentApp || currentApp.startsWith(tile.path);
40417
40419
  });
40418
40420
  var tileConfigAccess = true;
40419
40421