Skip to content

Commit

Permalink
Corrige des erreurs typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
cparthur committed Dec 9, 2024
1 parent 4d0469b commit 1eaee4f
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ type Props = {
const ModuleFichesActionsPage = ({ view, slug, sortSettings }: Props) => {
const collectiviteId = useCollectiviteId();

const { data: dataModule, isLoading: isModuleLoading } =
const { data: module, isLoading: isModuleLoading } =
usePersonalModuleFetch(slug);
const module = dataModule as ModuleFicheActionsSelect;

const { count } = usePlanActionsCount();

const trackEvent = useEventTracker(`app/tdb/personnel/${slug}`);
Expand All @@ -46,7 +46,7 @@ const ModuleFichesActionsPage = ({ view, slug, sortSettings }: Props) => {
properties={{ collectivite_id: collectiviteId! }}
/>
<FichesActionListe
filtres={module.options.filtre}
filtres={module.options.filtre ?? {}}
customFilterBadges={{
planActions:
module.options.filtre?.planActionIds?.length === count &&
Expand All @@ -59,7 +59,6 @@ const ModuleFichesActionsPage = ({ view, slug, sortSettings }: Props) => {
variant="outlined"
icon="equalizer-line"
size="sm"
children="Filtrer"
onClick={() => {
openState.setIsOpen(true);
trackEvent(
Expand All @@ -69,7 +68,9 @@ const ModuleFichesActionsPage = ({ view, slug, sortSettings }: Props) => {
{ collectivite_id: collectiviteId } as never
);
}}
/>
>
Filtrer
</Button>
{module.slug === 'actions-dont-je-suis-pilote' &&
openState.isOpen && (
<ModalActionsDontJeSuisLePilote
Expand Down

0 comments on commit 1eaee4f

Please sign in to comment.