feat: made alerts and logs keys more unique
This commit is contained in:
parent
57ac9c6551
commit
69e38aceec
|
@ -42,7 +42,7 @@ const AlertsList = () => {
|
||||||
</XStack>
|
</XStack>
|
||||||
{alerts.map(alert => (
|
{alerts.map(alert => (
|
||||||
<InformationBox
|
<InformationBox
|
||||||
key={alert.message}
|
key={alert.message + alert.variant}
|
||||||
message={alert.message}
|
message={alert.message}
|
||||||
icon={<CloseCircleIcon size={20} />}
|
icon={<CloseCircleIcon size={20} />}
|
||||||
variant={alert.variant}
|
variant={alert.variant}
|
||||||
|
|
|
@ -38,7 +38,7 @@ const LogsList = () => {
|
||||||
</XStack>
|
</XStack>
|
||||||
{logs.map(log => (
|
{logs.map(log => (
|
||||||
<InformationBox
|
<InformationBox
|
||||||
key={log.message}
|
key={log.message + log.variant}
|
||||||
message={log.message}
|
message={log.message}
|
||||||
icon={<CloseCircleIcon size={20} />}
|
icon={<CloseCircleIcon size={20} />}
|
||||||
variant={log.variant}
|
variant={log.variant}
|
||||||
|
|
Loading…
Reference in New Issue