We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95cf23c commit 10380ebCopy full SHA for 10380eb
1 file changed
app/javascript/components/Reports.jsx
@@ -23,9 +23,9 @@ export default function Reports({
23
24
let reportsUrl = `/api/reports.json?page=${page}`
25
if (userId) reportsUrl += `&user_id=${userId}`
26
- if (practiceId) reportsUrl += `&practice_id=${practiceId}`
27
if (companyId) reportsUrl += `&company_id=${companyId}`
28
- if (userPracticeId) reportsUrl += `&practice_id=${userPracticeId}`
+ const pid = userPracticeId || practiceId
+ if (pid) reportsUrl += `&practice_id=${pid}`
29
if (unchecked) reportsUrl += `&target=unchecked_reports`
30
31
const { data, error } = useSWR(reportsUrl, fetcher)
0 commit comments