fix: include primary database identifier in API report filtering (#36324)

Co-authored-by: Jose Ledesma <jose@Joses-MacBook-Pro.local>
This commit is contained in:
jose-ledesma
2025-06-11 17:43:04 +02:00
committed by GitHub
parent 885df2ff62
commit 0695e4ea7e

View File

@@ -65,7 +65,7 @@ export const useApiReport = () => {
// [Joshen] Keeping database selector separate from filter state, and merging them here for simplicity
const formattedFilters: ReportFilterItem[] = [
...filters,
...(identifier !== undefined && identifier !== project?.ref
...(identifier !== undefined
? [{ key: 'identifier', value: `'${identifier}'`, compare: 'is' } as ReportFilterItem]
: []),
]