Skip to content

Commit

Permalink
Fix new JS error when expiration is not activated for the post type
Browse files Browse the repository at this point in the history
  • Loading branch information
andergmartins committed May 17, 2024
1 parent 3944e74 commit 28148ff
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions assets/js/quick-edit.js

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

2 changes: 1 addition & 1 deletion assets/js/quick-edit.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions assets/jsx/quick-edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ inlineEditPost.edit = function (button, id) {
}

const container = document.getElementById("publishpress-future-quick-edit");
if (!container) {
return;
}
const root = createRoot(container);

const saveButton = document.querySelector('.inline-edit-save .save');
Expand Down

0 comments on commit 28148ff

Please sign in to comment.