Skip to content

Commit

Permalink
fix: issue with block editor (#964)
Browse files Browse the repository at this point in the history
Co-authored-by: clincu-plenty <cristian.lincu@plentysystems.com>
  • Loading branch information
clincu-plenty and clincu-plenty authored Jan 16, 2025
1 parent e9490b3 commit e3702c6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/web/components/Editor/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ const closeEditor = () => {
isEditing.value = false;
};
watch(
() => props.block,
(updatedData) => {
jsonText.value = JSON.stringify(updatedData, null, 2);
},
{ immediate: true, deep: true },
);
watchDebounced(
() => jsonText.value,
() => {
Expand Down
1 change: 1 addition & 0 deletions docs/changelog/changelog_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
- The homepage now has the new version of the carousel
- Fixed product accordions arrow display.
- Fixed an issue where calling useRoute within middleware could lead to misleading results.
- Fixed an issue where you only edit the initial block you selected.

## v1.8.0 (2024-12-13) <a href="https://github.com/plentymarkets/plentyshop-pwa/compare/v1.7.0...v1.8.0" target="_blank" rel="noopener"><b>Overview of all changes</b></a>

Expand Down

0 comments on commit e3702c6

Please sign in to comment.