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:
committed by
GitHub
parent
1811e1de79
commit
a9a46024e2
@@ -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 (
|
||||
|
||||
@@ -19,7 +19,7 @@ export default async function getServerDataAsync({ options }: WidgetProps<"app">
|
||||
}
|
||||
|
||||
return { app, pingResult };
|
||||
} catch (error) {
|
||||
} catch {
|
||||
return { app: null, pingResult: null };
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ export default async function getServerDataAsync({ integrationIds, itemId }: Wid
|
||||
)
|
||||
.flatMap((item) => item.data),
|
||||
};
|
||||
} catch (error) {
|
||||
} catch {
|
||||
return {
|
||||
initialData: [],
|
||||
};
|
||||
|
||||
@@ -16,7 +16,7 @@ export default async function getServerDataAsync({ integrationIds }: WidgetProps
|
||||
return {
|
||||
initialData: data,
|
||||
};
|
||||
} catch (error) {
|
||||
} catch {
|
||||
return {
|
||||
initialData: undefined,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user