Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(699)

Unified Diff: chrome/browser/resources/md_bookmarks/reducers.js

Issue 2746363013: [MD Bookmarks] Add a drag and drop indicator to bookmarks. (Closed)
Patch Set: address comments, add test Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/md_bookmarks/reducers.js
diff --git a/chrome/browser/resources/md_bookmarks/reducers.js b/chrome/browser/resources/md_bookmarks/reducers.js
index 06eb94f0adbd863ef1b9799c36f5a094e8fe7c81..d2133b54a92e3d762bfcfd12b5078aa92fdfb675 100644
--- a/chrome/browser/resources/md_bookmarks/reducers.js
+++ b/chrome/browser/resources/md_bookmarks/reducers.js
@@ -256,7 +256,7 @@ cr.define('bookmarks', function() {
case 'clear-search':
// TODO(tsergeant): Return to the folder that was selected before the
// search.
- return nodes['0'].children[0];
+ return nodes[bookmarks.util.ROOT_NODE_ID].children[0];
default:
return selectedFolder;
}

Powered by Google App Engine
This is Rietveld 408576698