jetstreamapp / jetstream

A better way to work on Salesforce
https://getjetstream.app/
Other
89 stars 18 forks source link

Uncaught TypeError: Cannot read properties of undefined (reading 'map') #763

Closed paustint closed 7 months ago

paustint commented 8 months ago

View details in Rollbar: https://app.rollbar.com/a/jetstream/fix/item/Jetstream/1337


TypeError: Cannot read properties of undefined (reading 'map')
  File "../../../apps/jetstream/src/app/components/core/jobs/job-utils.ts", line 11, in downloadJob
          const data = results.map((result) => {
  File "../../../apps/jetstream/src/app/components/core/jobs/Job.tsx", line 136, in Job
                    <button className="slds-button slds-button_neutral" onClick={() => downloadJob(jo...
  File "../../../node_modules/react-dom/cjs/react-dom.production.min.js", line 54, in Object.pwe
    typeof c)throw Error(p(231,b,typeof c));return c}var Lb=!1;if(ia)try{var Mb={};Object.definePrope...
  File "../../../node_modules/react-dom/cjs/react-dom.production.min.js", line 54, in vwe
    typeof c)throw Error(p(231,b,typeof c));return c}var Lb=!1;if(ia)try{var Mb={};Object.definePrope...
  File "../../../node_modules/react-dom/cjs/react-dom.production.min.js", line 55, in gwe
    function Ub(a,b,c,d,e,f,g,h,k){Tb.apply(this,arguments);if(Ob){if(Ob){var l=Pb;Ob=!1;Pb=null}else...
  File "../../../node_modules/react-dom/cjs/react-dom.production.min.js", line 105, in r6
    function nf(a,b,c){var d=a.type||"unknown-event";a.currentTarget=c;Ub(d,b,void 0,a);a.currentTarg...
  File "../../../node_modules/react-dom/cjs/react-dom.production.min.js", line 106, in E$
    function se(a,b){b=0!==(b&4);for(var c=0;c<a.length;c++){var d=a[c],e=d.event;d=d.listeners;a:{va...
  File "../../../node_modules/react-dom/cjs/react-dom.production.min.js", line 117, in [anonymous]
    0<d.length&&(e=new Ld("onBeforeInput","beforeinput",null,c,e),g.push({event:e,listeners:d}),e.dat...
  File "../../../node_modules/react-dom/cjs/react-dom.production.min.js", line 274, in m5
    function Rk(a,b){var c=K;K|=1;try{return a(b)}finally{K=c,0===K&&(Hj=B()+500,fg&&jg())}}function ...
  File "../../../node_modules/react-dom/cjs/react-dom.production.min.js", line 52, in WU
    function Bb(a){if(a=Cb(a)){if("function"!==typeof yb)throw Error(p(280));var b=a.stateNode;b&&(b=...
paustint commented 7 months ago

Resolved here https://github.com/jetstreamapp/jetstream/commit/21ae74da9f221644dc9e811feeab28a5fd7b5da9