Skip to content

Commit

Permalink
[TGA-59] fix(author_approval): incorrect watch function signature
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkLark86 committed Oct 12, 2023
1 parent 9194901 commit 914f21c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ export function AuthoringContainerDirective(authoringWorkspace: AuthoringWorkspa
link: function(scope, elem, attrs, ctrl) {
// Needed only for authoring Angular. In authoring react we have a generic
// event ('resource:updated') which listens to all item changes.
scope.$on('author_approval:updated', (event) => {
if (event.item_id === scope.item._id) {
scope.item.extra.publish_sign_off = event.sign_off_new_data;
scope.$on('author_approval:updated', (event, extra) => {
if (extra.item_id === ctrl.item?._id) {
ctrl.item.extra.publish_sign_off = extra.new_sign_off;
}
});

Expand Down

0 comments on commit 914f21c

Please sign in to comment.