Skip to content

Commit

Permalink
cleanup(entities): stop writing availableEntities on save
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelgerber committed Mar 28, 2024
1 parent 189a460 commit e508fa3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions adminSiteClient/ChartEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand Down

0 comments on commit e508fa3

Please sign in to comment.