diff --git a/resources/js/components/fieldtypes/bard/BardFieldtype.vue b/resources/js/components/fieldtypes/bard/BardFieldtype.vue index d33e885e13..bef93ba818 100644 --- a/resources/js/components/fieldtypes/bard/BardFieldtype.vue +++ b/resources/js/components/fieldtypes/bard/BardFieldtype.vue @@ -295,6 +295,11 @@ export default { addSet(handle) { const id = `set-${uniqid()}`; const values = Object.assign({}, { type: handle }, this.meta.defaults[handle]); + + let previews = {}; + Object.keys(this.meta.defaults[handle]).forEach(key => previews[key] = null); + this.previews = Object.assign({}, this.previews, { [id]: previews }); + this.updateSetMeta(id, this.meta.new[handle]); // Perform this in nextTick because the meta data won't be ready until then. diff --git a/resources/js/components/fieldtypes/replicator/Replicator.vue b/resources/js/components/fieldtypes/replicator/Replicator.vue index 588a377521..93720c789c 100644 --- a/resources/js/components/fieldtypes/replicator/Replicator.vue +++ b/resources/js/components/fieldtypes/replicator/Replicator.vue @@ -131,6 +131,10 @@ export default { enabled: true, }); + let previews = {}; + Object.keys(this.meta.defaults[handle]).forEach(key => previews[key] = null); + this.previews = Object.assign({}, this.previews, { [set._id]: previews }); + this.updateSetMeta(set._id, this.meta.new[handle]); this.values.splice(index, 0, set);