Skip to content

Commit

Permalink
#109: corrected setter to send array.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Mulholland committed May 8, 2018
1 parent d8617f9 commit 516390e
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/renderer/partials/ColumnProperties.vue
Original file line number Diff line number Diff line change
Expand Up @@ -393,23 +393,13 @@ export default {
setTrueValues: function(values) {
let withoutEmpties = this.removeStringEmpties(values)
let array = this.getNoDuplicatesArrayFromString(withoutEmpties)
this.setProperty('trueValues', values)
this.setProperty('trueValues', array)
},
setFalseValues: function(values) {
let withoutEmpties = this.removeStringEmpties(values)
let array = this.getNoDuplicatesArrayFromString(withoutEmpties)
this.setProperty('falseValues', values)
this.setProperty('falseValues', array)
},
// setTrueRawValues: function(values) {
// // let withoutEmpties = this.removeStringEmpties(values)
// // let array = this.getNoDuplicatesArrayFromString(withoutEmpties)
// this.setProperty('trueRawValues', values)
// },
// setFalseRawValues: function(values) {
// // let withoutEmpties = this.removeStringEmpties(values)
// // let array = this.getNoDuplicatesArrayFromString(withoutEmpties)
// this.setProperty('falseRawValues', values)
// },
getNoDuplicatesArrayFromString: function(values) {
return Array.from(new Set(values.split(',')))
},
Expand Down

0 comments on commit 516390e

Please sign in to comment.