File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -769,7 +769,7 @@ module fng.services {
769
769
$scope . $watch (
770
770
"record" ,
771
771
function ( newValue , oldValue ) {
772
- if ( $scope . phase === "ready" && ! $scope . dirtyChecked && Object . keys ( oldValue ) . length > 0 && $scope . topLevelFormName && $scope [ $scope . topLevelFormName ] . $dirty && typeof $scope . dataEventFunctions ?. checkDirty === "function" ) {
772
+ if ( $scope . phase === "ready" && ! $scope . dirtyChecked && Object . keys ( oldValue ) . length > 0 && $scope . topLevelFormName && $scope [ $scope . topLevelFormName ] && $scope [ $scope . topLevelFormName ] . $dirty && typeof $scope . dataEventFunctions ?. checkDirty === "function" ) {
773
773
$scope . dirtyChecked = true ;
774
774
// An opportunity to ask whether we can edit this document or not - pessimistic locking can be implemented by using this
775
775
const checkDirty = $scope . dataEventFunctions . checkDirty ( newValue , oldValue ) ;
You can’t perform that action at this time.
0 commit comments