Skip to content

Commit ad0d049

Browse files
fix:Date Range Component crashes when we remove Suffix Icon
1 parent 3883666 commit ad0d049

File tree

1 file changed

+1
-1
lines changed
  • client/packages/lowcoder/src/comps/utils

1 file changed

+1
-1
lines changed

client/packages/lowcoder/src/comps/utils/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ export function arrayMove<T>(data: Array<T>, start: number, end: number) {
8484
return result;
8585
}
8686

87-
export const hasIcon = (icon: ReactNode) => (icon as ReactElement).props.value;
87+
export const hasIcon = (icon: ReactNode) => (icon as ReactElement).props?.value;

0 commit comments

Comments
 (0)