Permalink
Browse files

fix(table): Don't startcase field label when label explicitly given

  • Loading branch information...
tmorehouse committed Oct 6, 2017
1 parent 2995cc7 commit 76a511f91083396b741c562ff26daa2da0e57ab4
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/components/table.vue
@@ -159,7 +159,7 @@ function processField(key, value) {
let field = null;
if (typeof value === 'string') {
// Label shortcut
field = { key: key, label: startCase(value) };
field = { key: key, label: value };
} else if (typeof value === 'function') {
// Formatter shortcut
field = { key: key, formatter: value };
@@ -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 = {};
return fields.filter(f => {
if (!memo[f.key]) {

0 comments on commit 76a511f

Please sign in to comment.