Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Esvalirion committed Jan 18, 2021
1 parent 2128489 commit 324cfa1
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/qComponents/QTable/src/QTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
/>

<template v-else>
{{ column.value }}
{{ String(column.value) }}
</template>

<span
Expand Down Expand Up @@ -455,9 +455,7 @@ export default {
doesHeaderExist() {
return this.groupsOfColumns.some(({ columns }) =>
columns.some(
({ value, slots }) => value || value === 0 || slots?.header
)
columns.some(({ value, slots }) => value?.toString() ?? slots?.header)
);
},
Expand Down Expand Up @@ -870,12 +868,12 @@ export default {
updateItem(item, index, key) {
let value = null;
if (item[key] === 0 || Boolean(item[key])) {
value = item[key];
if (String(item[key])) {
value = String(item[key]);
}
if (item.value) {
value = item.value;
if (String(item.value)) {
value = String(item.value);
}
return {
Expand Down

0 comments on commit 324cfa1

Please sign in to comment.