Skip to content

Commit

Permalink
fix null or undefined can not be sorted
Browse files Browse the repository at this point in the history
  • Loading branch information
HC200ok committed Mar 17, 2023
1 parent 3dc9c68 commit 5e9a05f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"author": "HC200ok",
"description": "A customizable and easy-to-use data table component made with Vue.js 3.x.",
"private": false,
"version": "1.5.38",
"version": "1.5.39",
"types": "./types/main.d.ts",
"license": "MIT",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function getItemValue(column: string, item: Item) {
}
return content;
}
return item[column];
return item[column] ?? '';
}

export function generateColumnContent(column: string, item: Item) {
Expand Down

0 comments on commit 5e9a05f

Please sign in to comment.