Skip to content

Commit

Permalink
Fix for fields trough relationships
Browse files Browse the repository at this point in the history
Resolves outl1ne#92
  • Loading branch information
jaap committed Mar 6, 2023
1 parent b10b959 commit 8b001c1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion resources/js/components/FormField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,12 @@ export default {
data[locale.key] = value;
}
} else {
formData.append(key, value);
// Fix for when the field is coming from a relationship
if (formData.formData) {
formData.formData.append(key, value);
} else {
formData.append(key, value);
}
}
}
}
Expand Down

0 comments on commit 8b001c1

Please sign in to comment.