Skip to content

Commit

Permalink
fix: don't count {} in value size
Browse files Browse the repository at this point in the history
  • Loading branch information
tophf committed Jan 26, 2024
1 parent 5a44680 commit 186b2b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/options/views/edit/values.vue
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ function setData(data = {}) {
}
function calcSize() {
store.storageSize = keys.value.reduce((sum, key) => sum
+ key.length + 4 + values.value[key].length + 2, 2);
+ key.length + 4 + values.value[key].length + 2, 0);
}
async function updateValue({
key,
Expand Down

0 comments on commit 186b2b8

Please sign in to comment.