diff --git a/components/new/alert-published-bal/alert-puslished-bal-moissoneur.tsx b/components/new/alert-published-bal/alert-puslished-bal-moissoneur.tsx index ee69f325..ac64892e 100644 --- a/components/new/alert-published-bal/alert-puslished-bal-moissoneur.tsx +++ b/components/new/alert-published-bal/alert-puslished-bal-moissoneur.tsx @@ -17,8 +17,7 @@ function AlertPublishedBALMoissoneur({ const loadOrganization = async () => { if (revision.context.extras.sourceId) { const sourceId: string = revision.context.extras.sourceId; - const id: string[] = sourceId.split("-"); - const dataset: Dataset = await DataGouvService.findDataset(id[1]); + const dataset: Dataset = await DataGouvService.findDataset(sourceId); setOrganization(dataset.organization); }