Skip to content

Commit

Permalink
fix(minor): fix error deleting element (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
maharshivpatel authored Sep 30, 2024
2 parents 7d82add + e59930f commit c29bebd
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ const getMarginContainerStyle = computed(() => {
onMounted(() => {
// TODO: Refactor this as per the new store structure
ElementStore.$subscribe((mutation, state) => {
if (!(mutation?.events)) return;
if (
(mutation.events.type === "set" && mutation.events.key == "Elements") ||
(mutation.events.type === "add" && mutation.events.newValue.parent?.type == "page")
Expand Down

0 comments on commit c29bebd

Please sign in to comment.