Skip to content

Commit

Permalink
Editor: Multi-entity saving: Show correct count of entities to be sav…
Browse files Browse the repository at this point in the history
…ed (#66482)

The modal was incorrectly displaying the number of different *types* of
entities to be saved. This result was inconsistent with the actual list
of entities rendered underneath and with the "Review _n_ changes" label
on the left-hand sidebar.
  • Loading branch information
mcsf authored Oct 25, 2024
1 parent 506342b commit 0466f7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/editor/src/components/entities-saved-states/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ export function EntitiesSavedStatesExtensible( {
_n(
'There is <strong>%d site change</strong> waiting to be saved.',
'There are <strong>%d site changes</strong> waiting to be saved.',
sortedPartitionedSavables.length
dirtyEntityRecords.length
),
sortedPartitionedSavables.length
dirtyEntityRecords.length
),
{ strong: <strong /> }
)
Expand Down

0 comments on commit 0466f7d

Please sign in to comment.