Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparrosin committed Jan 27, 2021
1 parent d818622 commit 719d3d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/js/translatable-field.js

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions resources/js/components/FormField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ export default {
}
}
if (this.isFlexible) formData.append(originalAttribute, JSON.stringify(data));
else if (this.isSimpleRepeatable) formData.append(this.field.attribute, JSON.stringify(data));
if (this.isFlexible || this.isSimpleRepeatable) formData.append(originalAttribute, JSON.stringify(data));
return;
} catch (e) {
console.error(e);
Expand Down

0 comments on commit 719d3d7

Please sign in to comment.