Skip to content

Commit

Permalink
Merge pull request #2891 from mdhaman/fix-save-for-associations
Browse files Browse the repository at this point in the history
(fix): cloneDeep assocations so that diff is calculated on save.
  • Loading branch information
Mayur Dhamanwala authored Mar 21, 2019
2 parents 05ea3b3 + 06a796d commit eb4544b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export function AuthoringDirective(superdesk, superdeskFlags, authoringWorkspace
}

// clonedeep associations so that diff can be calculated for saving next time.
if (res.associations && !_.isEqual($scope.item.associations, res.associations)) {
if (res.associations) {
$scope.item.associations = _.cloneDeep(res.associations);
}

Expand Down

0 comments on commit eb4544b

Please sign in to comment.