Skip to content

Commit

Permalink
Merge pull request #4 from KarolPapierz/main
Browse files Browse the repository at this point in the history
remove unnecessary type assertion
  • Loading branch information
souravdasslg committed Sep 10, 2022
2 parents d1f0c0e + bc0b025 commit 22ec673
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/list/src/list-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ export function useChildrenWithHeaderAndFooter<S>(
let renderer!: ListRendererFn<S>
const ids = Object.keys(children as any)
if (ids.length === 0) {
return [null, children as any as ListRendererFn<S>, null]
return [null, children as ListRendererFn<S>, null]
}
ids.forEach(id => {
const child = (children as any)[id]
const child = [id]
if (typeof child === 'function') {
renderer = child
} else if (renderer == undefined) {
Expand Down

0 comments on commit 22ec673

Please sign in to comment.