Skip to content

Commit

Permalink
fix: use feed enabled condition
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Aug 30, 2024
1 parent c9d098f commit 9726d43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/src/queries/feed.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ROUTE_FEED_PENDING } from "@renderer/constants"
import { ROUTE_FEED_IN_FOLDER, ROUTE_FEED_PENDING } from "@renderer/constants"
import { useAuthQuery } from "@renderer/hooks/common"
import { apiClient, getFetchErrorMessage } from "@renderer/lib/api-fetch"
import { defineQuery } from "@renderer/lib/defineQuery"
Expand Down Expand Up @@ -45,7 +45,7 @@ export const useFeed = ({ id, url }: FeedQueryParams) =>
url,
}),
{
enabled: (!!id || !!url) && id !== ROUTE_FEED_PENDING,
enabled: (!!id || !!url) && id !== ROUTE_FEED_PENDING && !id?.startsWith(ROUTE_FEED_IN_FOLDER),
},
)

Expand Down

0 comments on commit 9726d43

Please sign in to comment.