fix(KAN-14): preserve template inheritance and project data
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import type { TemplateConfiguration } from '@/types/project-template-configuration';
|
||||
|
||||
export function createTemplateConfiguration(
|
||||
snapshot?: Record<string, unknown>,
|
||||
): TemplateConfiguration {
|
||||
return JSON.parse(
|
||||
JSON.stringify({
|
||||
project_settings: { show_author: true, show_story_points: true },
|
||||
board_columns: [],
|
||||
ticket_statuses: [],
|
||||
status_transitions: [],
|
||||
ticket_types: [],
|
||||
ticket_priorities: [],
|
||||
ticket_fields: [],
|
||||
ticket_link_types: [],
|
||||
repository_connections: [],
|
||||
notification_actions: [],
|
||||
...snapshot,
|
||||
}),
|
||||
) as TemplateConfiguration;
|
||||
}
|
||||
Reference in New Issue
Block a user