Skip to content

Commit e45fc7c

Browse files
authored
fix: json view for applications (#100)
1 parent 6d44abf commit e45fc7c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/features/applications/components/application-details.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ type Props = {
3939
application: Application
4040
}
4141

42+
const expandApplicationJsonLevel = (level: number) => {
43+
return level < 2
44+
}
4245
export 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>

0 commit comments

Comments
 (0)