Chore/sentry fixes 280524 (#26828)

* UpgradeToPro remove project ref and org slug props

* Add check in Docs/ResourceContent

* Add conditional for accessing query property in QueryPerformanceGrid

* Add fallback value for lastPage in notifications-v2-query

* Simplify logic for finding api key in TerminalInstructions, EdgeFunctionDetails, [ref]/api/index

* Minor fixes and refactors

* Fix type issues
This commit is contained in:
Joshen Lim
2024-05-31 10:52:18 +08:00
committed by GitHub
parent 65eb68b0ee
commit 0d7137209c
15 changed files with 106 additions and 156 deletions

View File

@@ -91,7 +91,7 @@ export const QueryPerformanceGrid = ({ queryPerformanceQuery }: QueryPerformance
})
const selectedQuery =
selectedRow !== undefined ? queryPerformanceQuery.data?.[selectedRow]['query'] : undefined
selectedRow !== undefined ? queryPerformanceQuery.data?.[selectedRow]?.['query'] : undefined
const showIndexSuggestions = (selectedQuery ?? '').trim().toLowerCase().startsWith('select')
const onSortChange = (column: string) => {