Skip to content

Commit

Permalink
fix(templates): fix cloned indexes from a template (chartdb#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
guyb1 authored Nov 13, 2024
1 parent e5dbbf2 commit 9f8500f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ export const cloneDiagram = (
newTable.indexes = table.indexes.map(
(index): DBIndex => ({
...index,
fieldIds: index.fieldIds.map((id) => getNewId(id)),
id: getNewId(index.id),
})
);
Expand Down

0 comments on commit 9f8500f

Please sign in to comment.