Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanMiu committed May 11, 2021
1 parent 81a2de2 commit c37b3b4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/manage/Blocks/SiteTableau/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,7 @@ const View = (props) => {
(breakpoint) => breakpoint.device === device,
)[0]?.url;
const url = breakpointUrl || data.url;
const disabled = disabledKey
? !provider_data?.[disabledKey]?.[
provider_data?.siteReportingYear?.indexOf(query.siteReportingYear)
]
: false;
const disabled = disabledKey ? !provider_data?.[disabledKey]?.[0] : false;

React.useEffect(() => {
setMounted(true);
Expand Down

0 comments on commit c37b3b4

Please sign in to comment.