From 4e7e56e12c458dfa67dc6278a8856ede4fa6aa71 Mon Sep 17 00:00:00 2001 From: SONSOOMIN Date: Fri, 26 Apr 2024 18:10:57 +0900 Subject: [PATCH] fix error when pasting from .xls file --- src/columns/textColumn.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/columns/textColumn.tsx b/src/columns/textColumn.tsx index 677706f..3ba9fba 100644 --- a/src/columns/textColumn.tsx +++ b/src/columns/textColumn.tsx @@ -175,7 +175,7 @@ export function createTextColumn({ formatInputOnFocus = (value) => String(value ?? ''), formatForCopy = (value) => String(value ?? ''), parsePastedValue = (value) => - (value.replace(/[\n\r]+/g, ' ').trim() || (null as unknown)) as T, + ((value.replace(/[\n\r]+/g, ' ') ?? '').trim() || (null as unknown)) as T, }: TextColumnOptions = {}): Partial, string>> { return { component: TextComponent as unknown as CellComponent>,