jetstreamapp / jetstream

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

RangeError: [UNCAUGHT] Invalid time value #931

Closed paustint closed 4 months ago

paustint commented 4 months ago

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


RangeError: Invalid time value
  File "../../../node_modules/date-fns/formatISO.mjs", line 49, in formatISO
        throw new RangeError("Invalid time value");
  File "../../../libs/shared/ui-record-form/src/lib/UiRecordFormField.tsx", line 23, in getInitialValue
          return formatISO(roundToNearestMinutes(parseISO(initialValue as string)));
  File "../../../libs/shared/ui-record-form/src/lib/UiRecordFormField.tsx", line 83, in UiRecordFormField
      const [initialValue] = useState(() => getInitialValue(_initialValue, field));
  File "../../../node_modules/react-dom/cjs/react-dom.production.min.js", line 168, in Object.cN [as useState]
    function hi(a){var b=Th();"function"===typeof a&&(a=a());b.memoizedState=b.baseState=a;a={pending...
  File "../../../node_modules/react/cjs/react.production.min.js", line 26, in gr.useState
    exports.useMemo=function(a,b){return U.current.useMemo(a,b)};exports.useReducer=function(a,b,e){r...
  File "../../../libs/shared/ui-record-form/src/lib/UiRecordFormField.tsx", line 83, in UiRecordFormField
      const [initialValue] = useState(() => getInitialValue(_initialValue, field));
  File "../../../node_modules/react-dom/cjs/react-dom.production.min.js", line 160, in yk
    function Nh(a,b,c,d,e,f){Hh=f;M=b;b.memoizedState=null;b.updateQueue=null;b.lanes=0;Fh.current=nu...
  File "../../../node_modules/react-dom/cjs/react-dom.production.min.js", line 289, in u9
    Vk=function(a,b,c){if(null!==a)if(a.memoizedProps!==b.pendingProps||Wf.current)dh=!0;else{if(0===...
  File "../../../node_modules/react-dom/cjs/react-dom.production.min.js", line 279, in s9
    function tj(){if(0===T||3===T||2===T)T=4;null===Q||0===(rh&268435455)&&0===(qk&268435455)||Ck(Q,Z...
  File "../../../node_modules/react-dom/cjs/react-dom.production.min.js", line 279, in dee
    function tj(){if(0===T||3===T||2===T)T=4;null===Q||0===(rh&268435455)&&0===(qk&268435455)||Ck(Q,Z...