about summary refs log tree commit diff
path: root/src/view/com/pager/TabBar.tsx
diff options
context:
space:
mode:
authorHailey <153161762+haileyok@users.noreply.github.com>2024-01-30 17:54:29 -0800
committerGitHub <noreply@github.com>2024-01-30 17:54:29 -0800
commit28455f49dcb5ed2aa2b3d728ae3114e5c1cf7ebb (patch)
treeeabbd3caf911978714cc8c441f490f6fa2143579 /src/view/com/pager/TabBar.tsx
parentfaf48db67971eb135e8997093255ed7ac8016304 (diff)
downloadvoidsky-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.tsx2
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}