diff --git a/adminSiteClient/DatasetEditPage.tsx b/adminSiteClient/DatasetEditPage.tsx index 43679014931..5e3362b3400 100644 --- a/adminSiteClient/DatasetEditPage.tsx +++ b/adminSiteClient/DatasetEditPage.tsx @@ -43,7 +43,6 @@ interface DatasetPageData { tags: { id: number; name: string }[] variables: VariableListItem[] charts: ChartListItem[] - source?: OwidSource variableSources: OwidSource[] zipFile?: { filename: string } diff --git a/adminSiteServer/apiRouter.ts b/adminSiteServer/apiRouter.ts index 8795a33739a..144ca19b484 100644 --- a/adminSiteServer/apiRouter.ts +++ b/adminSiteServer/apiRouter.ts @@ -1879,8 +1879,6 @@ apiRouter.get("/datasets/:datasetId.json", async (req: Request) => { dataset.origins = origins - // This is only for backwards compatibility where we showed only the first source per - // dataset. We now show all of them, so perhaps this part could be removed. const sources = await db.queryMysql( ` SELECT s.id, s.name, s.description @@ -1891,12 +1889,6 @@ apiRouter.get("/datasets/:datasetId.json", async (req: Request) => { [datasetId] ) - if (sources.length > 0) { - dataset.source = JSON.parse(sources[0].description) - dataset.source.id = sources[0].id - dataset.source.name = sources[0].name - } - // expand description of sources and add to dataset as variableSources dataset.variableSources = sources.map((s: any) => { return {