Skip to content

Commit

Permalink
Make xrm tests pass strictNullChecks again
Browse files Browse the repository at this point in the history
The recent change to SuccessCallbackDelegate was made with
strictNullChecks off in master.
  • Loading branch information
sandersn committed Nov 23, 2016
1 parent daf9bd3 commit 53038c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xrm/xrm-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ if (Xrm.Page.data.process != null)

/// Demonstrate v7.1 Quick Create form

Xrm.Utility.openQuickCreate("account").then(( object ) => { alert( `Newly created record Id: ${object.savedEntityReference.id}` ); }, (error) => {console.log(`Code: ${error.errorCode}, Message: ${error.message}`)});
Xrm.Utility.openQuickCreate("account").then(( object ) => { if (object) alert( `Newly created record Id: ${object.savedEntityReference.id}` ); }, (error) => {console.log(`Code: ${error.errorCode}, Message: ${error.message}`)});

/// Make all controls visible.

Expand Down

0 comments on commit 53038c8

Please sign in to comment.