Skip to content

Commit

Permalink
Fix chart copy slug issue
Browse files Browse the repository at this point in the history
Fixes #3954

When saving a chart as a new copy, delete the `slug`.
  • Loading branch information
larsyencken committed Sep 13, 2024
1 parent a83487c commit c46ae9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions adminSiteClient/ChartEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ export class ChartEditor extends AbstractChartEditor<ChartEditorManager> {
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
Expand Down

0 comments on commit c46ae9f

Please sign in to comment.