Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hassanad94 committed May 18, 2023
1 parent db1b025 commit d939330
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ export const ContentList = <T extends GenericContent = GenericContent>(props: Co
const isNumeric =
fieldSetting &&
(fieldSetting.Type === 'IntegerFieldSetting' || fieldSetting.Type === 'NumberFieldSetting')
const description = (fieldSetting && fieldSetting.Description) || field
const displayName = (fieldSetting && fieldSetting.DisplayName) || field
const description: string = (fieldSetting && fieldSetting.Description) || field.field
const displayName: string = (fieldSetting && fieldSetting.DisplayName) || field.field
return (
<TableCell key={field.field} align={isNumeric ? 'right' : 'inherit'} className={field.field}>
<Tooltip title={description}>
Expand Down
2 changes: 1 addition & 1 deletion packages/sn-list-controls-react/test/content-list.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ describe('ContentList component', () => {
{ Id: 1, Name: '1', Path: '1', DisplayName: 'A', Type: 'Folder', Actions: [{ Name: 'Example' } as any] },
]}
schema={genericSchema}
fieldsToDisplay={[{ field: 'Type' }]}
fieldsToDisplay={[{ field: 'Actions' }, { field: 'Type' }]}
selected={[]}
orderBy="DisplayName"
orderDirection="asc"
Expand Down

0 comments on commit d939330

Please sign in to comment.