Skip to content

Commit

Permalink
Only block collection edit for public lists with un-resolved items
Browse files Browse the repository at this point in the history
  • Loading branch information
miko committed Feb 22, 2024
1 parent cbbd328 commit 292baa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/redux/actions/collections.js
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ export const doCollectionEdit =
await dispatch(doFetchItemsInCollection({ collectionId }));
state = getState();
const hasItemsResolved = selectCollectionHasItemsResolvedForId(state, collectionId);
if (!hasItemsResolved) {
if (isPublic && !hasItemsResolved) {
return dispatch(doToast({ message: __('Failed to resolve collection items. Please try again.'), isError: true }));
}

Expand Down

0 comments on commit 292baa3

Please sign in to comment.