Automattic / notifications-panel

Core notifications panel for WordPress.com notifications
0 stars 1 forks source link

Error: "Cannot read property 'substring' of null" #237

Open coderkevin opened 6 years ago

coderkevin commented 6 years ago

In the staging error logs, I found this error:


Stack Frame [ 0 ]

minified source: https://wordpress.com/calypso/async-load-notifications.69524ddcdfd3a445f458.min.js function: d. args: [] location: 1:19844

translated source: app:///./node_modules/notifications-panel/src/rest-client/index.js function: substring location: 463:40

This ends up in the handleStorageEvent function at this line:

  if ('note_read_status_' === event.key.substring(0, 17)) {

So it appears event.key is null somehow.

Calypso error info:

browser_name |   | chrome browser_version |   | 64.0 calypso_env |   | stage calypso_path |   | /store/product/:siteId/1028 calypso_section |   | woocommerce commit |   | 600147f0880919b6fef4c7141a37b1e981f6da06