Skip to content

Commit

Permalink
feat: prompt the full categories when editing the feed (RSSNext#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
KarasuShin authored Sep 14, 2024
1 parent 3715293 commit d5ce474
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/renderer/src/modules/discover/feed-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ const FeedInnerForm = ({

const { t } = useTranslation()

const categories = useAuthQuery(subscriptionQuery.categories(Number.parseInt(form.watch("view"))))
const categories = useAuthQuery(subscriptionQuery.categories())

// useEffect(() => {
// if (feed.isSuccess) nextFrame(() => buttonRef.current?.focus());
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/queries/subscriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const subscription = {
categories: (view?: number) =>
defineQuery(["subscription-categories", view], async () => {
const res = await apiClient.categories.$get({
query: { view: String(view) },
query: { view: view ? String(view) : undefined },
})

return res.data
Expand Down

0 comments on commit d5ce474

Please sign in to comment.