Skip to content

Commit

Permalink
Fix JS error
Browse files Browse the repository at this point in the history
  • Loading branch information
samiahmedsiddiqui committed Aug 4, 2020
1 parent 76fa502 commit dd932e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/js/script-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function updateMetaBox() {
}

isSaving = editPost.isSavingMetaBoxes();
if (!isSaving || isSaving !== lastIsSaving) {
if (isSaving !== lastIsSaving && !isSaving) {
var postId = wp.data.select("core/editor").getEditedPostAttribute("id");
var xhttp = new XMLHttpRequest();

Expand Down
2 changes: 1 addition & 1 deletion frontend/js/script-form.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dd932e1

Please sign in to comment.