Skip to content

Commit

Permalink
Dev Ops task 7176: OCR - Referred to me Bug. Datatable error was caus…
Browse files Browse the repository at this point in the history
…ed as the permission check returns false if the user has no occurrence reports referred to them. To fix we don't show the referred to me datatable unless the user actually has one or more occurrence reports referred to them.
  • Loading branch information
oakdbca committed Nov 5, 2024
1 parent 9a81e2d commit e3a9caa
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
:group_type_name="group_name" :group_type_id="getGroupId" :url="species_ocr_url"
:profile="profile" />
</FormSection>
<FormSection :formCollapse="false" label="Occurrence Report - Flora Referred to Me"
<FormSection v-if="profile && profile.ocr_referral_count > 0" :formCollapse="false" label="Occurrence Report - Flora Referred to Me"
Index="occurrence-report-flora-referred-to-me">
<OccurrenceReportReferredToMeDashTable v-if="isFlora" ref="flora_referrals_table" level="internal"
:group_type_name="group_name" :group_type_id="getGroupId" :url="species_ocr_referrals_url"
Expand All @@ -52,7 +52,7 @@
:group_type_name="group_name" :group_type_id="getGroupId" :url="species_ocr_url"
:profile="profile" />
</FormSection>
<FormSection :formCollapse="false" label="Occurrence Report - Fauna Referred to Me"
<FormSection v-if="profile && profile.ocr_referral_count > 0" :formCollapse="false" label="Occurrence Report - Fauna Referred to Me"
Index="occurrence-report-fauna-referred-to-me">
<OccurrenceReportReferredToMeDashTable v-if="isFauna" ref="fauna_referrals_table" level="internal"
:group_type_name="group_name" :group_type_id="getGroupId" :url="species_ocr_referrals_url"
Expand All @@ -75,7 +75,7 @@
:group_type_name="group_name" :group_type_id="getGroupId" :url="community_ocr_url"
:profile="profile" />
</FormSection>
<FormSection :formCollapse="false" label="Occurrence Report - Community Referred to Me"
<FormSection v-if="profile && profile.ocr_referral_count > 0" :formCollapse="false" label="Occurrence Report - Community Referred to Me"
Index="occurrence-report-community-referred-to-me">
<OccurrenceReportReferredToMeDashTable v-if="isCommunity" ref="community_referrals_table"
level="internal" :group_type_name="group_name" :group_type_id="getGroupId"
Expand Down

0 comments on commit e3a9caa

Please sign in to comment.