Skip to content

Commit

Permalink
Update workshop-stats.js
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiankaegy committed Apr 26, 2023
1 parent 7991609 commit 47319b8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/widgets/workshop-stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ const WorkshopAnmeldeStatWidget = () => {
const [ workshops, setWorkshops ] = useState( [] );
const [ isLoading, setIsLoading ] = useState( true );

const site = useSelect( select => select('core').getSite() );

useEffect( () => {
Promise.all( [
apiFetch( { path: 'wp/v2/anmeldung?per_page=5000' } ),
Expand Down Expand Up @@ -81,4 +79,4 @@ domReady( () => {
<WorkshopAnmeldeStatWidget />,
document.getElementById( 'workshops-stats-widget' )
);
} );
} );

0 comments on commit 47319b8

Please sign in to comment.