From cd9070643f23b54095d4eb89f8c49525b02b7424 Mon Sep 17 00:00:00 2001 From: Fufeck Date: Tue, 15 Oct 2024 15:14:20 +0200 Subject: [PATCH] migratio: moissonneurpostgres --- .../new/alert-published-bal/alert-puslished-bal-moissoneur.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 ee69f325c..ac64892ea 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); }