Skip to content

Commit 55ffef5

Browse files
fixed datatime column editing issue in table
1 parent 1798dbd commit 55ffef5

File tree

1 file changed

+1
-1
lines changed
  • client/packages/lowcoder/src/comps/comps/tableComp/column/columnTypeComps

1 file changed

+1
-1
lines changed

client/packages/lowcoder/src/comps/comps/tableComp/column/columnTypeComps/columnDateComp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ const Wrapper = styled.div`
127127

128128
export function formatDate(date: string, format: string) {
129129
let mom = dayjs(date);
130-
if (isNumber(Number(date)) && date !== "") {
130+
if (isNumber(Number(date)) && !isNaN(Number(date)) && date !== "") {
131131
mom = dayjs(Number(date));
132132
}
133133
if (!mom.isValid()) {

0 commit comments

Comments
 (0)