Chromium Code Reviews| Index: chrome/browser/resources/print_preview/data/print_ticket_store.js |
| diff --git a/chrome/browser/resources/print_preview/data/print_ticket_store.js b/chrome/browser/resources/print_preview/data/print_ticket_store.js |
| index c3abdf2812f4f8315914de61bca3041b30148650..29c05f21c2fa025a40670f56124cfe689da2073d 100644 |
| --- a/chrome/browser/resources/print_preview/data/print_ticket_store.js |
| +++ b/chrome/browser/resources/print_preview/data/print_ticket_store.js |
| @@ -558,6 +558,8 @@ cr.define('print_preview', function() { |
| * @private |
| */ |
| onSelectedDestinationCapabilitiesReady_: function() { |
| + if (!this.destinationStore_.selectedDestination) |
|
dpapad
2016/11/18 00:29:16
Can you add a comment explaining how this function
rbpotter
2016/11/18 02:59:23
I was getting an error here previously but after f
|
| + return; |
| var caps = assert( |
| this.destinationStore_.selectedDestination.capabilities); |
| var isFirstUpdate = this.capabilitiesHolder_.get() == null; |