Skip to content

Commit

Permalink
remove any
Browse files Browse the repository at this point in the history
  • Loading branch information
NoelKova committed Aug 2, 2024
1 parent bd428fe commit a4000ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/sensenet/src/components/content-list/content-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -729,8 +729,8 @@ export const ContentList = <T extends GenericContent = GenericContent>(props: Co
})
: currentOrder === 'CreatedBy' || currentOrder === 'ModifiedBy'
? children?.sort((a, b) => {
const aTmp = a[currentOrder] as any
const bTmp = b[currentOrder] as any
const aTmp = a[currentOrder] as GenericContent
const bTmp = b[currentOrder] as GenericContent

const nameA = String(aTmp?.DisplayName) ?? ''
const nameB = String(bTmp?.DisplayName) ?? ''
Expand Down

0 comments on commit a4000ce

Please sign in to comment.