mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
stable and unique key for /rules page and key fixes
Signed-off-by: amanycodes <amanycodes@gmail.com>
This commit is contained in:
parent
dc1b95b74e
commit
c7d98efd29
|
@ -220,7 +220,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="md" mt="xs" ml="xs" justify="space-between">
|
||||
<Group align="baseline">
|
||||
|
|
|
@ -86,13 +86,13 @@ export default function RulesPage() {
|
|||
(effectiveActivePage - 1) * ruleGroupsPerPage,
|
||||
effectiveActivePage * ruleGroupsPerPage
|
||||
)
|
||||
.map((g, i) => (
|
||||
.map((g) => (
|
||||
<Card
|
||||
shadow="xs"
|
||||
withBorder
|
||||
p="md"
|
||||
mb="md"
|
||||
key={i} // TODO: Find a stable and definitely unique key.
|
||||
key={`${g.file}-${g.name}`} // TODO: Find a stable and definitely unique key.
|
||||
>
|
||||
<Group mb="md" mt="xs" ml="xs" justify="space-between">
|
||||
<Group align="baseline">
|
||||
|
|
Loading…
Reference in a new issue