Skip to content

Commit

Permalink
Save empty fields when updating farm profile. Closes #81
Browse files Browse the repository at this point in the history
  • Loading branch information
paul121 committed Apr 20, 2020
1 parent ca575a6 commit e39ab31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/views/main/farm/EditFarm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,10 @@ export default class EditFarm extends Vue {
if (this.url !== this.oldUrl) {
updatedFarm.url = this.url;
}
if (this.notes) {
if (this.notes !== null) {
updatedFarm.notes = this.notes;
}
if (this.tags) {
if (this.tags !== null) {
updatedFarm.tags = this.tags;
}

Expand Down

0 comments on commit e39ab31

Please sign in to comment.