Skip to content

Commit

Permalink
Update DeletePageButton.js
Browse files Browse the repository at this point in the history
using lastError instead
  • Loading branch information
leemyongpakva authored Oct 19, 2024
1 parent a58a37c commit 81f6ce0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const DeletePageButton = ( { pageId } ) => {
}
};
const { deleteEntityRecord } = useDispatch( coreDataStore );
const { isDeleting, error } = useSelect(
const { isDeleting } = useSelect(

Check failure on line 37 in plugins/data-basics-59c8f8/src/components/DeletePageButton.js

View workflow job for this annotation

GitHub Actions / JavaScript and CSS (18)

Replace `⏎↹↹` with `·`

Check failure on line 37 in plugins/data-basics-59c8f8/src/components/DeletePageButton.js

View workflow job for this annotation

GitHub Actions / JavaScript and CSS (lts/*)

Replace `⏎↹↹` with `·`
( select ) => ( {
isDeleting: select( coreDataStore ).isDeletingEntityRecord(

Check failure on line 39 in plugins/data-basics-59c8f8/src/components/DeletePageButton.js

View workflow job for this annotation

GitHub Actions / JavaScript and CSS (18)

Delete `↹`

Check failure on line 39 in plugins/data-basics-59c8f8/src/components/DeletePageButton.js

View workflow job for this annotation

GitHub Actions / JavaScript and CSS (lts/*)

Delete `↹`
'postType',

Check failure on line 40 in plugins/data-basics-59c8f8/src/components/DeletePageButton.js

View workflow job for this annotation

GitHub Actions / JavaScript and CSS (18)

Delete `↹`

Check failure on line 40 in plugins/data-basics-59c8f8/src/components/DeletePageButton.js

View workflow job for this annotation

GitHub Actions / JavaScript and CSS (lts/*)

Delete `↹`
Expand Down

0 comments on commit 81f6ce0

Please sign in to comment.