@dcodegroup-au/page-builder 0.4.6 → 0.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcodegroup-au/page-builder",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "exports": {
5
5
  ".": {
6
6
  "import": "./dist/page-builder.es.js"
@@ -174,11 +174,15 @@ const deleteCallback = (index) => {
174
174
 
175
175
  const updateType = (item) => {
176
176
  if (item.content_type === 'content') {
177
+ delete item['image'];
177
178
  item.icon = null;
178
179
  item.title = null;
179
180
  item.supporting_text = null;
180
181
  } else {
181
182
  item.image = null;
183
+ delete item['icon'];
184
+ delete item['supporting_text'];
185
+ delete item['title'];
182
186
  }
183
187
  };
184
188
  </script>
@@ -28,7 +28,7 @@
28
28
  class="flex gap-3"
29
29
  :class="{
30
30
  'bg-gray-50 p-8 rounded-tl-[24px] rounded-br-[24px] overflow-hidden flex-col' : featureItemsComponent.hasOwnProperty('grid_columns') && featureItemsComponent.grid_columns > 2,
31
- '!p-0': item.hasOwnProperty('image')
31
+ '!p-0': item?.image
32
32
  }">
33
33
  <template v-if="item.title">
34
34
  <div v-if="item?.icon"