mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-14 09:25:47 +01:00
🐛 Fix miscellaneous console errors (#1418)
* 🐛 Bookmark widget key fix * 🐛 Media request list widget key fix * 🐛 media server widget key fix * 🐛 Remove "hasNextLevel" error
This commit is contained in:
@@ -100,7 +100,7 @@ function MediaServerTile({ widget }: MediaServerWidgetProps) {
|
||||
|
||||
<Group pos="absolute" bottom="15" right="15" mt="auto">
|
||||
<Avatar.Group>
|
||||
{data?.servers.map((server) => {
|
||||
{data?.servers.map((server, index) => {
|
||||
const app = config?.apps.find((x) => x.id === server.appId);
|
||||
|
||||
if (!app) {
|
||||
@@ -109,6 +109,7 @@ function MediaServerTile({ widget }: MediaServerWidgetProps) {
|
||||
|
||||
return (
|
||||
<AppAvatar
|
||||
key={index}
|
||||
iconUrl={app.appearance.iconUrl}
|
||||
// If success, the color is undefined, otherwise it's red but if isFetching is true, it's yellow
|
||||
color={server.success ? (isFetching ? 'yellow' : undefined) : 'red'}
|
||||
|
||||
Reference in New Issue
Block a user