mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
Bug 1149880 - avoid readinglist item races logging unhandled promise exceptions. r=dolske
This commit is contained in:
parent
b26e8d6034
commit
6cbf858a7b
@ -469,7 +469,10 @@ let RLSidebar = {
|
||||
this.activeItem = null;
|
||||
} else {
|
||||
ReadingList.itemForURL(msg.url).then(item => {
|
||||
this.activeItem = this.itemNodesById.get(item.id);
|
||||
let node;
|
||||
if (item && (node = this.itemNodesById.get(item.id))) {
|
||||
this.activeItem = node;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user