From 606a5a24ea9e5529b0a42885482e23a3fc938f95 Mon Sep 17 00:00:00 2001 From: huangying11 Date: Tue, 22 Feb 2022 10:39:28 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BF=AE=E6=94=B9inputRange=20schema?= =?UTF-8?q?=20=E7=B1=BB=E5=9E=8B=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderers/Form/InputRange.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderers/Form/InputRange.tsx b/src/renderers/Form/InputRange.tsx index b5d2ff4a2..4e1f07226 100644 --- a/src/renderers/Form/InputRange.tsx +++ b/src/renderers/Form/InputRange.tsx @@ -618,7 +618,7 @@ export default class RangeControl extends React.PureComponent< let renderMarks: | MarksType | {[index: number | string]: ReactNode} - | undefined = {...marks}; + | undefined = marks ? {...marks} : marks; marks && forEach(marks, (item, key) => { if (isObject(item) && (item as SchemaObject).type) {