Skip to content

Commit

Permalink
fix: type error
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Aug 4, 2024
1 parent ab31850 commit 5cd41ad
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/renderer/src/modules/panel/cmdn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ const CmdNPanel = () => {
<FeedForm
asWidget
url={url}
defaultView={defaultView}
defaultValues={{
view: defaultView.toString(),
}}
onSuccess={dismissAll}
/>
),
Expand Down
8 changes: 7 additions & 1 deletion src/renderer/src/pages/add/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ export function Component() {
}, [])
return (
<div className="h-full overflow-hidden bg-theme-background">
<FeedForm url={url} id={id} defaultView={defaultView as FeedViewType} />
<FeedForm
url={url}
id={id}
defaultValues={{
view: defaultView.toString(),
}}
/>
</div>
)
}

0 comments on commit 5cd41ad

Please sign in to comment.