From c46ae9f5bd8bd23d6faf412af949a8bcd7d383a7 Mon Sep 17 00:00:00 2001 From: Lars Yencken Date: Fri, 13 Sep 2024 09:45:38 +0100 Subject: [PATCH] Fix chart copy slug issue Fixes #3954 When saving a chart as a new copy, delete the `slug`. --- adminSiteClient/ChartEditor.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/adminSiteClient/ChartEditor.ts b/adminSiteClient/ChartEditor.ts index 84721a551c1..6c9e7809eaf 100644 --- a/adminSiteClient/ChartEditor.ts +++ b/adminSiteClient/ChartEditor.ts @@ -176,6 +176,7 @@ export class ChartEditor extends AbstractChartEditor { const chartJson = { ...patchConfig } delete chartJson.id delete chartJson.isPublished + delete chartJson.slug // Need to open intermediary tab before AJAX to avoid popup blockers const w = window.open("/", "_blank") as Window