mirror of
https://github.com/prometheus/prometheus.git
synced 2025-08-05 13:47:10 +02:00
stable and unique key for /rules page and key fixes
Signed-off-by: amanycodes <amanycodes@gmail.com>
This commit is contained in:
parent
de5b5c56e2
commit
25d2746e35
@ -221,7 +221,7 @@ export default function AlertsPage() {
|
||||
shadow="xs"
|
||||
withBorder
|
||||
p="md"
|
||||
key={`${g.name}-${g.file}`} // TODO: Find a stable and definitely unique key.
|
||||
key={`${g.file}-${g.name}`} // TODO: Find a stable and definitely unique key.
|
||||
>
|
||||
<Group mb="sm" justify="space-between">
|
||||
<Group align="baseline">
|
||||
|
@ -86,12 +86,13 @@ export default function RulesPage() {
|
||||
(effectiveActivePage - 1) * ruleGroupsPerPage,
|
||||
effectiveActivePage * ruleGroupsPerPage
|
||||
)
|
||||
.map((g, i) => (
|
||||
.map((g) => (
|
||||
<Card
|
||||
shadow="xs"
|
||||
withBorder
|
||||
p="md"
|
||||
key={i} // TODO: Find a stable and definitely unique key.
|
||||
mb="md"
|
||||
key={`${g.file}-${g.name}`} // TODO: Find a stable and definitely unique key.
|
||||
>
|
||||
<Group mb="sm" justify="space-between">
|
||||
<Group align="baseline">
|
||||
|
Loading…
Reference in New Issue
Block a user