diff --git a/package.json b/package.json index 427704d..b78bbcb 100644 --- a/package.json +++ b/package.json @@ -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": [ diff --git a/src/utils.ts b/src/utils.ts index 48a31b3..71186ba 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -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) {