Skip to content

Commit

Permalink
fix(form-builder): fix issue where change indicators on primitive arr…
Browse files Browse the repository at this point in the history
…ay inputs are displayed even when there are no changes

Fixes [ch6010]
  • Loading branch information
bjoerge committed Apr 8, 2021
1 parent 63782f8 commit 6331622
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export default class ArrayOfPrimitivesInput extends React.PureComponent<Props> {
level={level + 1}
index={index}
value={item}
compareValue={(compareValue || [])[index]}
compareValue={compareValue}
readOnly={readOnly}
markers={filteredMarkers.length === 0 ? NO_MARKERS : filteredMarkers}
isSortable={isSortable}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type Props = {
markers: Marker[]
index: number
value: string | number | boolean
compareValue?: string | number | boolean
compareValue?: (string | number | boolean)[]
isSortable: boolean
readOnly: boolean | null
level: number
Expand Down

0 comments on commit 6331622

Please sign in to comment.