Skip to content

Commit

Permalink
upd: Fetch options only if they are not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
bozhidarampeco committed May 29, 2024
1 parent 67d417e commit 70933b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/js/field.js

Large diffs are not rendered by default.

9 changes: 3 additions & 6 deletions resources/js/components/FormField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,14 @@ export default {
mounted() {
this.operator = this.field.operator;
if (this.field.parent_value) {
this.parentValue = this.field.parent_value;
}
this.parentValue = this.field.parent_value;
if (this.field.options) {
this.options = this.field.options;
} else {
this.updateOptions();
}
this.updateOptions();
Nova.$on(this.field.parent_attribute+'-change', (value) => {
this.parentValue = value
this.updateOptions()
Expand Down

0 comments on commit 70933b1

Please sign in to comment.