Skip to content

Commit 4d8a509

Browse files
committed
Make sure to parse JSON when auto-inserting in store
1 parent 6127790 commit 4d8a509

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

view/base/templates/script/store/localstorage-store.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ $sectionConfig = $block->getSectionConfig();
2929
return;
3030
}
3131

32-
this.data = event.detail.value;
32+
this.data = JSON.parse(event.detail.value);
3333
})
3434

3535
const storedData = localStorage.getItem(this.key);

0 commit comments

Comments
 (0)