mirror of
https://github.com/prometheus/prometheus.git
synced 2025-08-06 14:17:12 +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"
|
shadow="xs"
|
||||||
withBorder
|
withBorder
|
||||||
p="md"
|
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 mb="sm" justify="space-between">
|
||||||
<Group align="baseline">
|
<Group align="baseline">
|
||||||
|
@ -86,12 +86,13 @@ export default function RulesPage() {
|
|||||||
(effectiveActivePage - 1) * ruleGroupsPerPage,
|
(effectiveActivePage - 1) * ruleGroupsPerPage,
|
||||||
effectiveActivePage * ruleGroupsPerPage
|
effectiveActivePage * ruleGroupsPerPage
|
||||||
)
|
)
|
||||||
.map((g, i) => (
|
.map((g) => (
|
||||||
<Card
|
<Card
|
||||||
shadow="xs"
|
shadow="xs"
|
||||||
withBorder
|
withBorder
|
||||||
p="md"
|
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 mb="sm" justify="space-between">
|
||||||
<Group align="baseline">
|
<Group align="baseline">
|
||||||
|
Loading…
Reference in New Issue
Block a user