|
|
|
@ -140,7 +140,7 @@ class TPMRepositoryComponent extends Component {
|
|
|
|
|
let fileInPathArray = false;
|
|
|
|
|
if (newPathArray.length) {
|
|
|
|
|
fileInPathArray = this.nameTypeMap[newPathArray[newPathArray.length - 1]] ? this.nameTypeMap[newPathArray[newPathArray.length - 1]] !== 'tree'
|
|
|
|
|
: (listItem.type !== 'tree' && this._isFileName( newPathArray[newPathArray.length - 1] ))
|
|
|
|
|
: (listItem ? listItem.type !== 'tree' : this._isFileName( newPathArray[newPathArray.length - 1] ))
|
|
|
|
|
if ( fileInPathArray ) {
|
|
|
|
|
urlNewPathArray = newPathArray.slice(0, newPathArray.length - 1)
|
|
|
|
|
}
|
|
|
|
|