Skip to content

Commit 5e9a05f

Browse files
committed
fix null or undefined can not be sorted
1 parent 3dc9c68 commit 5e9a05f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"author": "HC200ok",
44
"description": "A customizable and easy-to-use data table component made with Vue.js 3.x.",
55
"private": false,
6-
"version": "1.5.38",
6+
"version": "1.5.39",
77
"types": "./types/main.d.ts",
88
"license": "MIT",
99
"files": [

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function getItemValue(column: string, item: Item) {
1313
}
1414
return content;
1515
}
16-
return item[column];
16+
return item[column] ?? '';
1717
}
1818

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

0 commit comments

Comments
 (0)