File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/features/applications/components Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,9 @@ type Props = {
3939 application : Application
4040}
4141
42+ const expandApplicationJsonLevel = ( level : number ) => {
43+ return level < 2
44+ }
4245export function ApplicationDetails ( { application } : Props ) {
4346 const applicationItems = useMemo (
4447 ( ) => [
@@ -101,7 +104,7 @@ export function ApplicationDetails({ application }: Props) {
101104 < CardContent className = { cn ( 'text-sm space-y-2' ) } >
102105 < div className = { cn ( 'grid grid-cols-[1fr_max-content]' ) } >
103106 < DescriptionList items = { applicationItems } />
104- < OpenJsonViewDialogButton json = { application . json } />
107+ < OpenJsonViewDialogButton json = { application . json } expandJsonLevel = { expandApplicationJsonLevel } />
105108 </ div >
106109 </ CardContent >
107110 </ Card >
You can’t perform that action at this time.
0 commit comments