You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think I have trapped this issue in a small area but I wasn't able to resolve it. Most of the code here is 8 years old and WPTableViewHandler, the possible culprit, seems to be in use throughout the codebase.
What is happening here is this line is being called more than necessary. When a draft post is published, that line is called once which is reasonable. But then it gets called until the remaining number is 3. So if we had 9 draft posts and we publish one (now 8), that line gets called an additional 5 more times so the resulting number is 3.
Also number of items in the resultsController is 3 right when we open this screen rather than the correct number 9. Then it syncs with backend and updates.
Expected behavior
Draft list should be updated correctly to reflect the number of posts that remains in the Drafts tab.
Actual behavior
When publishing a draft post from Drafts tab, the draft list shows only 3 drafts after publishing. It’s resolved by refreshing the list manually.
Steps to reproduce the behavior
Tested on [device], iOS [version], WPiOS [version]
Device: Iphone 14 Pro Max
iOs Version: 16.1
WP/JP version: 21.1
RPReplay_Final1667339113.MP4
The text was updated successfully, but these errors were encountered: