Skip to content

Commit

Permalink
Fix defaultLayout props
Browse files Browse the repository at this point in the history
  • Loading branch information
dkmyta authored and nateweller committed Dec 15, 2024
1 parent 889693d commit d541977
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions projects/js-packages/components/components/scan-report/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,16 @@ export default function ScanReport( { dataSource, data, onChangeSelection } ): J
const defaultLayouts: SupportedLayouts = {
table: {
...baseView,
fields: [ FIELD_STATUS, FIELD_TYPE, FIELD_NAME, FIELD_VERSION ],
layout: {
primaryField: FIELD_STATUS,
},
fields: [ FIELD_TYPE, FIELD_NAME, FIELD_VERSION ],
titleField: FIELD_STATUS,
showMedia: false,
},
list: {
...baseView,
fields: [ FIELD_STATUS, FIELD_VERSION ],
layout: {
primaryField: FIELD_NAME,
mediaField: FIELD_ICON,
},
titleField: FIELD_NAME,
mediaField: FIELD_ICON,
showMedia: true,
},
};

Expand Down

0 comments on commit d541977

Please sign in to comment.