mattermost-plugin-jira icon indicating copy to clipboard operation
mattermost-plugin-jira copied to clipboard

Javascript error occurs in Create Issue modal when removing a selected multiselect option

Open mickmister opened this issue 2 years ago • 0 comments

Clicking the x next to triage in the screenshot below causes a Javascript error to occur, though clicking the x to the right of the select box works correctly.

image image
Uncaught TypeError: Cannot read properties of null (reading 'map')
    at Object.r [as onChange] (jira_field.jsx:178:42)
    at Object.onChange (react_select_setting.tsx:63:28)
    at n.value (chunk-b36baf1a.browser.esm.js:111:51)
    at chunk-b36baf1a.browser.esm.js:48:15
    at t.onChange (react-select-a34e9d12.browser.esm.js:1152:34)
    at t.removeValue (react-select-a34e9d12.browser.esm.js:1262:13)
    at onClick (react-select-a34e9d12.browser.esm.js:2502:31)
    at Object.s (react-dom.production.min.js:14:84)
    at c (react-dom.production.min.js:14:238)
    at react-dom.production.min.js:14:292

mickmister avatar Aug 30 '22 18:08 mickmister