Skip to content

Commit bf9c68c

Browse files
committed
stable and definitely unique card UI key in /alerts
Signed-off-by: amanycodes <amanycodes@gmail.com>
1 parent a5ffa83 commit bf9c68c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/ui/mantine-ui/src/pages/AlertsPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export default function AlertsPage() {
220220
shadow="xs"
221221
withBorder
222222
p="md"
223-
key={i} // TODO: Find a stable and definitely unique key.
223+
key={`${g.name}-${g.file}`} // TODO: Find a stable and definitely unique key.
224224
>
225225
<Group mb="md" mt="xs" ml="xs" justify="space-between">
226226
<Group align="baseline">

0 commit comments

Comments
 (0)