diff --git a/web/src/App.tsx b/web/src/App.tsx
index f1de2e1..5244213 100644
--- a/web/src/App.tsx
+++ b/web/src/App.tsx
@@ -32,17 +32,17 @@ export function App() {
const settings = SettingsContext.useValue();
return (
-
-
-
+
+
+
{settings.debug ? (
) : null}
-
-
+
+
);
}
\ No newline at end of file
diff --git a/web/src/components/alerts/ErrorPage.tsx b/web/src/components/alerts/ErrorPage.tsx
index e3152b9..e228c52 100644
--- a/web/src/components/alerts/ErrorPage.tsx
+++ b/web/src/components/alerts/ErrorPage.tsx
@@ -13,7 +13,7 @@ export const ErrorPage = ({ error, resetErrorBoundary }: FallbackProps) => {
});
return (
-
+
We caught an unrecoverable error!
diff --git a/web/src/forms/settings/IndexerForms.tsx b/web/src/forms/settings/IndexerForms.tsx
index 0df6f32..626ba8e 100644
--- a/web/src/forms/settings/IndexerForms.tsx
+++ b/web/src/forms/settings/IndexerForms.tsx
@@ -173,7 +173,9 @@ interface AddProps {
export function IndexerAddForm({ isOpen, toggle }: AddProps) {
const [indexer, setIndexer] = useState({} as IndexerDefinition);
- const { data } = useQuery("indexerDefinition", APIClient.indexers.getSchema,
+ const { data } = useQuery(
+ "indexerDefinition",
+ () => APIClient.indexers.getSchema(),
{
enabled: isOpen,
refetchOnWindowFocus: false
diff --git a/web/src/screens/dashboard/Stats.tsx b/web/src/screens/dashboard/Stats.tsx
index caa0a11..25339ef 100644
--- a/web/src/screens/dashboard/Stats.tsx
+++ b/web/src/screens/dashboard/Stats.tsx
@@ -34,7 +34,7 @@ export const Stats = () => {
return (
- Stats
+ Stats
diff --git a/web/src/screens/filters/details.tsx b/web/src/screens/filters/details.tsx
index bf4add4..a3076b9 100644
--- a/web/src/screens/filters/details.tsx
+++ b/web/src/screens/filters/details.tsx
@@ -309,7 +309,7 @@ export default function FilterDetails() {
export function General() {
const { isLoading, data: indexers } = useQuery(
["filters", "indexer_list"],
- APIClient.indexers.getOptions,
+ () => APIClient.indexers.getOptions(),
{ refetchOnWindowFocus: false }
);
@@ -535,7 +535,7 @@ interface FilterActionsProps {
export function FilterActions({ filter, values }: FilterActionsProps) {
const { data } = useQuery(
["filters", "download_clients"],
- APIClient.download_clients.getAll,
+ () => APIClient.download_clients.getAll(),
{ refetchOnWindowFocus: false }
);
diff --git a/web/src/screens/filters/list.tsx b/web/src/screens/filters/list.tsx
index 4fc17f8..11f9537 100644
--- a/web/src/screens/filters/list.tsx
+++ b/web/src/screens/filters/list.tsx
@@ -24,7 +24,7 @@ export default function Filters() {
const { isLoading, error, data } = useQuery(
["filters"],
- APIClient.filters.getAll,
+ () => APIClient.filters.getAll(),
{ refetchOnWindowFocus: false }
);
diff --git a/web/src/screens/settings/DownloadClient.tsx b/web/src/screens/settings/DownloadClient.tsx
index 1f2c049..c95715d 100644
--- a/web/src/screens/settings/DownloadClient.tsx
+++ b/web/src/screens/settings/DownloadClient.tsx
@@ -78,7 +78,7 @@ function DownloadClientSettings() {
const { error, data } = useQuery(
"downloadClients",
- APIClient.download_clients.getAll,
+ () => APIClient.download_clients.getAll(),
{ refetchOnWindowFocus: false }
);
diff --git a/web/src/screens/settings/Feed.tsx b/web/src/screens/settings/Feed.tsx
index 334d9a4..e08a02b 100644
--- a/web/src/screens/settings/Feed.tsx
+++ b/web/src/screens/settings/Feed.tsx
@@ -20,10 +20,10 @@ import { EmptySimple } from "../../components/emptystates";
import { componentMapType } from "../../forms/settings/DownloadClientForms";
function FeedSettings() {
- const { data } = useQuery("feeds", APIClient.feeds.find,
- {
- refetchOnWindowFocus: false
- }
+ const { data } = useQuery(
+ "feeds",
+ () => APIClient.feeds.find(),
+ { refetchOnWindowFocus: false }
);
return (
diff --git a/web/src/screens/settings/Indexer.tsx b/web/src/screens/settings/Indexer.tsx
index 1d0bd84..49c1f2b 100644
--- a/web/src/screens/settings/Indexer.tsx
+++ b/web/src/screens/settings/Indexer.tsx
@@ -74,7 +74,7 @@ function IndexerSettings() {
const { error, data } = useQuery(
"indexer",
- APIClient.indexers.getAll,
+ () => APIClient.indexers.getAll(),
{ refetchOnWindowFocus: false }
);
@@ -137,7 +137,7 @@ function IndexerSettings() {
- {data && data.map((indexer: IndexerDefinition, idx: number) => (
+ {data.map((indexer, idx) => (
))}
diff --git a/web/src/screens/settings/Irc.tsx b/web/src/screens/settings/Irc.tsx
index 632041d..3a45426 100644
--- a/web/src/screens/settings/Irc.tsx
+++ b/web/src/screens/settings/Irc.tsx
@@ -17,7 +17,7 @@ export const IrcSettings = () => {
const { data } = useQuery(
"networks",
- APIClient.irc.getNetworks,
+ () => APIClient.irc.getNetworks(),
{
refetchOnWindowFocus: false,
// Refetch every 3 seconds
diff --git a/web/src/screens/settings/Notifications.tsx b/web/src/screens/settings/Notifications.tsx
index a84399b..14ed96f 100644
--- a/web/src/screens/settings/Notifications.tsx
+++ b/web/src/screens/settings/Notifications.tsx
@@ -10,10 +10,10 @@ import { componentMapType } from "../../forms/settings/DownloadClientForms";
function NotificationSettings() {
const [addNotificationsIsOpen, toggleAddNotifications] = useToggle(false);
- const { data } = useQuery("notifications", APIClient.notifications.getAll,
- {
- refetchOnWindowFocus: false
- }
+ const { data } = useQuery(
+ "notifications",
+ () => APIClient.notifications.getAll(),
+ { refetchOnWindowFocus: false }
);
return (