Skip to content

Commit

Permalink
#1256 | Extract json properties from card for cloning
Browse files Browse the repository at this point in the history
  • Loading branch information
himeshr committed Jan 23, 2024
1 parent ddc9ad6 commit 80e5e81
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class CustomDashboardView extends AbstractComponent {
renderCards() {
const splitNestedCards = (cardIter) => {
const repeatTimes = cardIter.nested ? cardIter.countOfCards: 1;
return Array(repeatTimes).fill(cardIter).map((card, i) => ({ ...card, itemKey: card.getCardId(i)}));
return Array(repeatTimes).fill(cardIter).map((card, i) => ({ ...card.toJSON(), itemKey: card.getCardId(i)}));
}
const activeDashboardSectionMappings = _.filter(this.state.reportCardSectionMappings, ({dashboardSection}) => this.state.activeDashboardUUID === dashboardSection.dashboard.uuid);
const sectionWiseData = _.chain(activeDashboardSectionMappings)
Expand Down

0 comments on commit 80e5e81

Please sign in to comment.