Skip to content

Commit

Permalink
Fix saving when item closed with changes (#4538)
Browse files Browse the repository at this point in the history
  • Loading branch information
thecalcc authored and petrjasek committed Jun 12, 2024
1 parent 0fd67ed commit 6497d27
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,11 @@ export function AuthoringDirective(
$scope.close = function() {
_closing = true;

// Request to generate html before we pass scope variables
for (const fn of ($scope.requestEditor3DirectivesToGenerateHtml ?? [])) {
fn();
}

// returned promise used by superdesk-fi
return authoringApiCommon.closeAuthoringStep2($scope, $rootScope);
};
Expand Down

0 comments on commit 6497d27

Please sign in to comment.