fix(deps): update dependency typescript-eslint to v8 (#896)

* fix(deps): update dependency typescript-eslint to v8

* fix: lint issues

* fix: more lint issues

---------

Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
This commit is contained in:
homarr-renovate[bot]
2024-08-01 10:13:12 +02:00
committed by GitHub
parent 1811e1de79
commit a9a46024e2
12 changed files with 124 additions and 99 deletions

View File

@@ -3,6 +3,7 @@
import { useCallback } from "react";
import {
ActionIcon,
Alert,
Anchor,
Button,
Fieldset,
@@ -125,7 +126,11 @@ const LocationSearchModal = createModal<LocationSearchInnerProps>(({ actions, in
});
if (error) {
throw error;
return (
<Alert title={tCommon("error")} color="red">
{error.message}
</Alert>
);
}
return (

View File

@@ -19,7 +19,7 @@ export default async function getServerDataAsync({ options }: WidgetProps<"app">
}
return { app, pingResult };
} catch (error) {
} catch {
return { app: null, pingResult: null };
}
}

View File

@@ -27,7 +27,7 @@ export default async function getServerDataAsync({ integrationIds, itemId }: Wid
)
.flatMap((item) => item.data),
};
} catch (error) {
} catch {
return {
initialData: [],
};

View File

@@ -16,7 +16,7 @@ export default async function getServerDataAsync({ integrationIds }: WidgetProps
return {
initialData: data,
};
} catch (error) {
} catch {
return {
initialData: undefined,
};