Skip to content

Commit

Permalink
fix: subcription status & category empty, input value null (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
Magren0321 authored Sep 2, 2024
1 parent 7f5bb1e commit 93e2ccf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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 @@ -140,7 +140,7 @@ const FeedInnerForm = ({
useEffect(() => {
if (subscription) {
form.setValue("view", `${subscription?.view}`)
form.setValue("category", subscription?.category)
subscription?.category && form.setValue("category", subscription.category)
form.setValue("isPrivate", subscription?.isPrivate || false)
}
}, [subscription])
Expand Down
1 change: 1 addition & 0 deletions src/renderer/src/modules/profile/user-profile-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ const SubscriptionItem: FC<{
content: ({ dismiss }) => (
<FeedForm
asWidget
id={subscription.feedId}
url={subscription.feeds.url}
defaultValues={{
view: defaultView.toString(),
Expand Down

0 comments on commit 93e2ccf

Please sign in to comment.