From e508fa3a2d8a916f9b3d3dc418fad9e3f4f8f226 Mon Sep 17 00:00:00 2001 From: Marcel Gerber Date: Wed, 27 Mar 2024 23:55:04 +0100 Subject: [PATCH] cleanup(entities): stop writing `availableEntities` on save --- adminSiteClient/ChartEditor.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/adminSiteClient/ChartEditor.ts b/adminSiteClient/ChartEditor.ts index 33751f3b06b..3e72a818551 100644 --- a/adminSiteClient/ChartEditor.ts +++ b/adminSiteClient/ChartEditor.ts @@ -223,11 +223,6 @@ export class ChartEditor { if (!currentGrapherObject.slug) currentGrapherObject.slug = grapher.displaySlug - // We need to save availableEntities for Algolia search. Todo: remove. - const availableEntities = grapher.table.availableEntityNames - if (availableEntities.length) - (currentGrapherObject as any).data = { availableEntities } - const targetUrl = isNewGrapher ? "/api/charts" : `/api/charts/${grapher.id}`