mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix: use .set(data) on load instead of .merge(data)
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
parent
7e4c19d9b6
commit
1dd611b2a8
@ -80,7 +80,7 @@ export class StorageHelper<T> {
|
|||||||
const notDefault = !this.isDefaultValue(data);
|
const notDefault = !this.isDefaultValue(data);
|
||||||
|
|
||||||
if (notEmpty && notDefault) {
|
if (notEmpty && notDefault) {
|
||||||
this.merge(data);
|
this.set(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.initialized = true;
|
this.initialized = true;
|
||||||
@ -162,6 +162,8 @@ export class StorageHelper<T> {
|
|||||||
} else if (isPlainObject(value)) {
|
} else if (isPlainObject(value)) {
|
||||||
Object.assign(draft, value);
|
Object.assign(draft, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return draft;
|
||||||
});
|
});
|
||||||
|
|
||||||
this.set(nextValue);
|
this.set(nextValue);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user