fix(ui): prevent crash when project id doesn't exist
Description
instrument.ts:129 TypeError: Cannot read properties of undefined (reading 'id')
at que (IndexPage.tsx:598:69)
at oo (react-dom.production.min.js:157:137)
at Ys (react-dom.production.min.js:267:460)
at Nl (react-dom.production.min.js:250:347)
at jl (react-dom.production.min.js:250:278)
at Sl (react-dom.production.min.js:250:138)
at yl (react-dom.production.min.js:243:163)
at react-dom.production.min.js:123:115
at t.unstable_runWithPriority (scheduler.production.min.js:18:343)
at qi (react-dom.production.min.js:122:325)
at Ki (react-dom.production.min.js:123:61)
at Yi (react-dom.production.min.js:122:428)
at pl (react-dom.production.min.js:237:203)
at Object.enqueueSetState (react-dom.production.min.js:133:211)
at g.setState (react.production.min.js:12:369)
at u.<anonymous> (IndexPage.tsx:870:12)
at i.n (PublisherMethods.js:52:18)
at i.emit (index.js:116:35)
at t.trigger (PublisherMethods.js:71:22)
at u.onGetUserProfileCompleted (store.js:421:10)
at i.n (PublisherMethods.js:52:18)
at i.emit (index.js:116:35)
at t.trigger (PublisherMethods.js:71:22)
at Function.e [as completed] (createAction.js:81:37)
at actions.js:260:12
at actions.js:165:13
Related issue
Examples
https://console.postgres.ai/demo/sessions/?project=gitlab-production-tunnel-pg12
Checklist
-
MR description has been reviewed -
MR changes are functionally tested -
MR does NOT have API/CLI changes OR there are API/CLI changes and they have been reviewed & DOCS ARE ADJUSTED (reference doc, etc) -
MR does NOT have UI changes OR there are UI changes and they have been reviewed & UX IS REVIEWED
Edited by Lasha Kakabadze