Skip to content

Commit d5f5fa7

Browse files
chrisbobbegnprice
authored andcommitted
UserList types: Be a bit more surgical with a Flow suppression
Though not as surgical as I'd like; but I don't have the time to dig further right now.
1 parent 9472686 commit d5f5fa7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/users/UserList.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,12 @@ export default function UserList(props: Props): Node {
6262
)}
6363
renderSectionHeader={({ section }) =>
6464
section.data.length === 0 ? null : (
65-
// $FlowFixMe[incompatible-type]
66-
<SectionHeader text={section.key} />
65+
<SectionHeader
66+
text={
67+
// $FlowIgnore[incompatible-cast] something wrong with SectionList
68+
(section.key: (typeof sections)[number]['key'])
69+
}
70+
/>
6771
)
6872
}
6973
/>

0 commit comments

Comments
 (0)