diff --git a/adminSiteClient/ChartRow.tsx b/adminSiteClient/ChartRow.tsx index 4b34fa0bc1e..ef1ba985090 100644 --- a/adminSiteClient/ChartRow.tsx +++ b/adminSiteClient/ChartRow.tsx @@ -47,14 +47,14 @@ export class ChartRow extends React.Component<{ return ( - {chart.isPublished && ( + {chart.isPublished ? ( - )} + ) : null} {chart.isPublished ? ( diff --git a/db/model/Chart.ts b/db/model/Chart.ts index e3a1524e15f..41f04cf2138 100644 --- a/db/model/Chart.ts +++ b/db/model/Chart.ts @@ -440,10 +440,10 @@ export const oldChartFieldList = ` chart_configs.full->>"$.type" AS type, chart_configs.full->>"$.internalNotes" AS internalNotes, chart_configs.full->>"$.variantName" AS variantName, - chart_configs.full->>"$.isPublished" AS isPublished, chart_configs.full->>"$.tab" AS tab, JSON_EXTRACT(chart_configs.full, "$.hasChartTab") = true AS hasChartTab, JSON_EXTRACT(chart_configs.full, "$.hasMapTab") = true AS hasMapTab, + JSON_EXTRACT(chart_configs.full, "$.isPublished") = true AS isPublished, charts.lastEditedAt, charts.lastEditedByUserId, lastEditedByUser.fullName AS lastEditedBy,