Skip to content

Commit

Permalink
[atlas4dev] Template saving bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Redjaw authored Nov 21, 2023
2 parents b6cf73a + 8160d26 commit 91cb557
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/documentExecution/dashboard/DashboardHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ export const formatDashboardForSave = (dashboard: IDashboard) => {
dashboard.widgets[i] = formatWidgetForSave(dashboard.widgets[i]) as IWidget
}
formatVariablesForSave(dashboard.configuration)
delete dashboard.allDatasetsLoaded
const propertiesForDelete = ['allDatasetsLoaded', 'htmlGallery', 'pythonGallery', 'customChartGallery', 'currentView', 'associations', 'drivers', 'crossNavigations', 'document', 'outputParameters']
propertiesForDelete.forEach((property: string) => delete dashboard[property])
}

const formatVariablesForSave = (dashboardConfiguration: IDashboardConfiguration) => {
Expand Down

0 comments on commit 91cb557

Please sign in to comment.