Skip to content

Commit 9aaea8d

Browse files
committed
Fix uniqueIds changing from any way
1 parent b80943d commit 9aaea8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/virtual.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ export default class Virtual {
7575

7676
updateParam (key, value) {
7777
if (this.param && (key in this.param)) {
78-
// if uniqueIds reducing, find out deleted id and remove from size map
79-
if (key === 'uniqueIds' && (value.length < this.param[key].length)) {
78+
// if uniqueIds change, find out deleted id and remove from size map
79+
if (key === 'uniqueIds') {
8080
this.sizes.forEach((v, key) => {
8181
if (!value.includes(key)) {
8282
this.sizes.delete(key)

0 commit comments

Comments
 (0)