alleyinteractive / apple-news

The Publish to Apple News plugin enables your WordPress blog content to be published to your Apple News channel.
https://wordpress.org/plugins/publish-to-apple-news/
GNU General Public License v3.0
155 stars 71 forks source link

"Delete Rule" Button in Automation Rules Table Fails and Removes Contents of the Entire Page #1018

Closed jtroynousky closed 9 months ago

jtroynousky commented 1 year ago

Description of the bug

When the Automation page has one or more automation rules set, clicking on the "Delete Rule" button removes the contents of the apple-news-options__page div – effectively everything in the main content area.

BEFORE CLICKING DELETE RULE

Screen Shot 2023-10-05 at 10 06 43 PM

AFTER CLICKING DELETE RULE

Screen Shot 2023-10-05 at 10 06 52 PM

This produces the following output in console:

Screen Shot 2023-10-05 at 10 10 27 PM

Steps To Reproduce

  1. Visit Apple News => Automation in the dashboard.
  2. If no automation rules are already set, add one and save.
  3. Refresh the page and click any Delete Rule button in the rules table.

Additional Information

We are encountering this on two of our sites that are on WordPress 6.3.1. I see the same behavior on 6.2.2 as well.

As a sanity check, I spun up a quick instance on the WordPress Playground (https://playground.wordpress.net – also 6.3.1) and I'm seeing it there, as well.

james-tyner commented 1 year ago

yes, I also have experienced this issue!

attackant commented 9 months ago

This will be fixed in the next release. Thank you @jtroynousky and @james-tyner