Skip to content

Commit a1ad930

Browse files
dkmytanateweller
authored andcommitted
ScanReport: Fix defaultLayout (#40603)
1 parent 52aa9bd commit a1ad930

File tree

1 file changed

+6
-8
lines changed
  • projects/js-packages/components/components/scan-report

1 file changed

+6
-8
lines changed

projects/js-packages/components/components/scan-report/index.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,16 @@ export default function ScanReport( { dataSource, data, onChangeSelection } ): J
5151
const defaultLayouts: SupportedLayouts = {
5252
table: {
5353
...baseView,
54-
fields: [ FIELD_STATUS, FIELD_TYPE, FIELD_NAME, FIELD_VERSION ],
55-
layout: {
56-
primaryField: FIELD_STATUS,
57-
},
54+
fields: [ FIELD_TYPE, FIELD_NAME, FIELD_VERSION ],
55+
titleField: FIELD_STATUS,
56+
showMedia: false,
5857
},
5958
list: {
6059
...baseView,
6160
fields: [ FIELD_STATUS, FIELD_VERSION ],
62-
layout: {
63-
primaryField: FIELD_NAME,
64-
mediaField: FIELD_ICON,
65-
},
61+
titleField: FIELD_NAME,
62+
mediaField: FIELD_ICON,
63+
showMedia: true,
6664
},
6765
};
6866

0 commit comments

Comments
 (0)