@syncfusion/ej2-filemanager 29.1.34 → 29.1.37

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.
@@ -1455,7 +1455,7 @@ function getSortedData(parent, items) {
1455
1455
  function getObject(parent, key, value) {
1456
1456
  var currFiles = getValue(parent.pathId[parent.pathId.length - 1], parent.feFiles);
1457
1457
  var result = currFiles.filter(function (data) { return data[key].toString() === value; });
1458
- return result.length > 0 ? result[0] : null;
1458
+ return result[0];
1459
1459
  }
1460
1460
  /**
1461
1461
  * Creates empty element
@@ -1669,16 +1669,13 @@ function setNextPath(parent, path) {
1669
1669
  var eventName = (folders[i + 1] === '') ? finalizeEnd : initialEnd;
1670
1670
  var newPath = (folders[i] === '') ? '/' : (parent.path + folders[i] + '/');
1671
1671
  var data = getObject(parent, key, folders[parseInt(i.toString(), 10)]);
1672
- if (!isNullOrUndefined(data)) {
1673
- var id = getValue('_fm_id', data);
1674
- parent.setProperties({ path: newPath }, true);
1672
+ var id = getValue('_fm_id', data);
1673
+ parent.setProperties({ path: newPath }, true);
1674
+ if (!isNullOrUndefined(id)) {
1675
1675
  parent.pathId.push(id);
1676
- parent.itemData = [data];
1677
- parent.pathNames.push(getValue('name', data));
1678
- }
1679
- else {
1680
- parent.originalPath = newPath;
1681
1676
  }
1677
+ parent.itemData = [data];
1678
+ parent.pathNames.push(getValue('name', data));
1682
1679
  read(parent, eventName, parent.path);
1683
1680
  break;
1684
1681
  }
@@ -8493,6 +8490,7 @@ var FileManager = /** @__PURE__ @class */ (function (_super) {
8493
8490
  this.notify(modelChanged, { module: 'navigationpane', newProp: newProp, oldProp: oldProp });
8494
8491
  break;
8495
8492
  case 'path':
8493
+ this.oldPath = oldProp.path;
8496
8494
  this.setPath();
8497
8495
  break;
8498
8496
  case 'searchSettings':