Skip to content

Commit

Permalink
Typing of publication cell
Browse files Browse the repository at this point in the history
Just removing a type exception.
  • Loading branch information
lkiesow committed Jul 19, 2024
1 parent bc134ca commit da8642d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/events/partials/PublishedCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ const PublishCell = ({

useEffect(() => {
// Function for handling clicks outside of popup
// @ts-expect-error TS(7006): Parameter 'e' implicitly has an 'any' type.
const handleClickOutside = (e) => {
const handleClickOutside = (e: MouseEvent) => {
if (
containerPublications.current &&
!containerPublications.current.contains(e.target)
!containerPublications.current.contains(e.target as Node)
) {
setShowPopup(false);
}
Expand Down

0 comments on commit da8642d

Please sign in to comment.