Open gtr opened 1 year ago
on the log it also shows
TypeError: Cannot assign to read only property 'database' of object '#<Object>'
Something is weird with the log because several other logs also point to this same getSchedules function, but that is not used on the Insights page, I think is just a problem with the log showing a wrong line. That function is not even getting called as far as I can see.
From my POV this could be occurring bc we're writing directly to a filters object passed down as props (props should be readonly). I don't see any instances where we write to schemaInsightType
field directly, and I couldn't find this error for later versions (this occurred on a 22.2 version). I'm inclined to believe this may not be an issue anymore, but I'm doing some further testing with playing around with setting the filters. So far no errors produced.
Describe the problem
A type error was encountered in the insights page.
To Reproduce
The replay isn't available but the error happened on the
cluster/insights/
route with the following error:Based on this and the prettified stack trace, it seems to have been originating from the
getSchedules
function inschedulesApi.ts
.Additional data / screenshots
Environment:
CockroachDB version: Cockroach Serverless Server OS: Mac OS X 10.15.7
Jira issue: CRDB-27932