Skip to content

Commit 46088ec

Browse files
committed
Don't overwrite state.ids if sorting order hasn't changed
1 parent 1602a36 commit 46088ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/entities/sorted_state_adapter.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ describe('Sorted State Adapter', () => {
272272
[TheGreatGatsby, AnimalFarm, AClockworkOrange],
273273
state
274274
)
275-
const changes = { id: 'A New Id', title: AnimalFarm.title }
275+
const changes = { id: 'A New Id', title: 'A New Hope' }
276276

277277
const withUpdates = adapter.updateOne(
278278
{

0 commit comments

Comments
 (0)