Skip to content

Commit

Permalink
Fix undefined variable
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasplevy committed Feb 22, 2021
1 parent 2697a80 commit 11ae011
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions assets/js/builder/Controllers/Sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Sync builder data to the server
*
* @since 3.16.0
* @version 4.14.0
* @version [version]
*/
define( [], function() {

Expand Down Expand Up @@ -113,9 +113,10 @@ define( [], function() {
/**
* Manually Save data via Admin AJAX when the heartbeat API has been disabled
*
* @return void
* @since 3.16.7
* @version 3.16.7
* @since 3.16.7
* @since [version] Fixed undefined variable error when logging an error response.
*
* @return void
*/
function do_ajax_save() {

Expand Down Expand Up @@ -149,7 +150,7 @@ define( [], function() {
},
error: function( xhr, status, error ) {

window.llms_builder.debug.log( '==== start do_ajax_save error ====', data, '==== finish do_ajax_save error ====' );
window.llms_builder.debug.log( '==== start do_ajax_save error ====', xhr, '==== finish do_ajax_save error ====' );

self.saving = false;

Expand Down

1 comment on commit 11ae011

@thomasplevy
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eri-trabiccolo can I get a code review 😆

Please sign in to comment.