diff options
author | Hailey <153161762+haileyok@users.noreply.github.com> | 2024-01-30 17:54:29 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-30 17:54:29 -0800 |
commit | 28455f49dcb5ed2aa2b3d728ae3114e5c1cf7ebb (patch) | |
tree | eabbd3caf911978714cc8c441f490f6fa2143579 /src/view/com/pager/TabBar.tsx | |
parent | faf48db67971eb135e8997093255ed7ac8016304 (diff) | |
download | voidsky-28455f49dcb5ed2aa2b3d728ae3114e5c1cf7ebb.tar.zst |
prevent duplicate keys in feed tab bar (#2666)
Diffstat (limited to 'src/view/com/pager/TabBar.tsx')
-rw-r--r-- | src/view/com/pager/TabBar.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/view/com/pager/TabBar.tsx b/src/view/com/pager/TabBar.tsx index c3a95c5c0..dadcfcebd 100644 --- a/src/view/com/pager/TabBar.tsx +++ b/src/view/com/pager/TabBar.tsx @@ -78,7 +78,7 @@ export function TabBar({ return ( <PressableWithHover testID={`${testID}-selector-${i}`} - key={item} + key={`${item}-${i}`} onLayout={e => onItemLayout(e, i)} style={[styles.item, selected && indicatorStyle]} hoverStyle={pal.viewLight} |