Skip to content

Commit

Permalink
[5.x] Fix button group and radio previews (#10501)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksleight authored Jul 26, 2024
1 parent 8d1c258 commit a259314
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default {
replicatorPreview() {
if (! this.showFieldPreviews || ! this.config.replicator_preview) return;
var option = _.findWhere(this.config.options, {value: this.value});
var option = _.findWhere(this.options, {value: this.value});
return (option) ? option.label : this.value;
},
},
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/fieldtypes/RadioFieldtype.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default {
replicatorPreview() {
if (! this.showFieldPreviews || ! this.config.replicator_preview) return;
var option = _.findWhere(this.config.options, {value: this.value});
var option = _.findWhere(this.options, {value: this.value});
return (option) ? option.label : this.value;
},
},
Expand Down

0 comments on commit a259314

Please sign in to comment.