Skip to content

Commit

Permalink
fix(table): Don't startcase field label when label explicitly given
Browse files Browse the repository at this point in the history
  • Loading branch information
tmorehouse committed Oct 6, 2017
1 parent 2995cc7 commit 76a511f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/components/table.vue
Expand Up @@ -159,7 +159,7 @@ function processField(key, value) {
let field = null; let field = null;
if (typeof value === 'string') { if (typeof value === 'string') {
// Label shortcut // Label shortcut
field = { key: key, label: startCase(value) }; field = { key: key, label: value };
} else if (typeof value === 'function') { } else if (typeof value === 'function') {
// Formatter shortcut // Formatter shortcut
field = { key: key, formatter: value }; field = { key: key, formatter: value };
Expand Down Expand Up @@ -480,7 +480,7 @@ export default {
}); });
} }
// Ensure we have a unique array of fields and that htey have labels // Ensure we have a unique array of fields and that they have labels
const memo = {}; const memo = {};
return fields.filter(f => { return fields.filter(f => {
if (!memo[f.key]) { if (!memo[f.key]) {
Expand Down

0 comments on commit 76a511f

Please sign in to comment.