don't try to display things that don't exist

This commit is contained in:
ansuz committed 2016-12-29 17:05:28 +01:00
1 parent 75786ff9ff
commit 850bd42149
1 file changed
+3
+3
View File
@@ -1188,6 +1188,9 @@ define([
var createTree = function ($container, path) {
var root = filesOp.findElement(files, path);
// don't try to display what doesn't exist
if (!root) { return; }
// Display the root element in the tree
var displayingRoot = filesOp.comparePath([ROOT], path);
if (displayingRoot) {