Merge pull request #4397 from appsmithorg/perf/ui/reduce-json-view-data
[Performance] Collapse all but the first two records in react-json-view
This commit is contained in:
commit
516aa0f40c
|
|
@ -216,6 +216,10 @@ export const CurrentValueViewer = memo(
|
|||
},
|
||||
collapsed: 2,
|
||||
collapseStringsAfterLength: 20,
|
||||
shouldCollapse: (field: any) => {
|
||||
const index = field.name * 1;
|
||||
return index >= 2 ? true : false;
|
||||
},
|
||||
};
|
||||
content = (
|
||||
<ReactJson src={props.evaluatedValue} {...reactJsonProps} />
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user