gabrieljackson / mattermost-plugin-wrangler

Manage Mattermost Messages Masterfully!
Apache License 2.0
49 stars 13 forks source link

Bug: opening dropdown on a system message crashes the webapp #99

Closed nathanaelhoun closed 3 years ago

nathanaelhoun commented 3 years ago

When opening the dropdown menu on a system message, the webapp crashes

Reproduce

  1. Enable the Wrangler webapp functionality [BETA]
  2. Refresh the webapp
  3. Click on the dropdown for a system message (i.e. "@someuse has joined the channel")
  4. The screen becomes white
  5. Refresh to restore the webapp

Webapp logs

TypeError: can't access property "user_id", n is undefined
    lt com.mattermost.wrangler_451a6ce528877b61_bundle.js:26
    Redux 5
    React 2
    k Redux
    React 9
    unstable_runWithPriority scheduler.production.min.js:19
    React 15
    unstable_runWithPriority scheduler.production.min.js:19
    React 2
    j scheduler.production.min.js:17
    onmessage scheduler.production.min.js:14
    EventHandlerNonNull* scheduler.production.min.js:13
    Webpack 13
react-dom.production.min.js:209:194
[Util] handleError::  TypeError: can't access property "user_id", n is undefined index.js:158:36
Uncaught TypeError: can't access property "user_id", n is undefined
gabrieljackson commented 3 years ago

Thank you for this report. I will investigate and get back with you.

gabrieljackson commented 3 years ago

I have identified this issue and will have a few up shortly.

gabrieljackson commented 3 years ago

A fix for this issue has been merged and will be part of the next release.

nathanaelhoun commented 3 years ago

Great, thanks @gabrieljackson!