Skip to content

Commit

Permalink
#94 Fix relationships
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarpsvo committed Jun 30, 2023
1 parent b0c630e commit fcf3a61
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resources/js/components/FormField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ export default {
data[locale.key] = value;
}
} else {
formData.append(key, value);
// Fix for when the field is coming from a relationship
let realFormData = formData.formData || formData;
realFormData.append(key, value);
}
}
}
Expand Down

0 comments on commit fcf3a61

Please sign in to comment.