Skip to content

Commit

Permalink
[4.x] Fix missing replicator set previews (#8855)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksleight authored Oct 16, 2023
1 parent bbf6c19 commit e5665ac
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion resources/js/components/fieldtypes/replicator/Set.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ export default {
}
},
data() {
return {
fieldPreviews: this.previews,
}
},
computed: {
fields() {
Expand Down Expand Up @@ -166,7 +172,7 @@ export default {
},
previewUpdated(handle, value) {
this.$emit('previews-updated', { ...this.previews, [handle]: value });
this.$emit('previews-updated', this.fieldPreviews = { ...this.fieldPreviews, [handle]: value });
},
destroy() {
Expand Down

0 comments on commit e5665ac

Please sign in to comment.