fix(desktop): fix default view in feed form
This commit is contained in:
parent
9b0691aacf
commit
bf26a3eabc
|
|
@ -209,7 +209,11 @@ const FeedInnerForm = ({
|
|||
}, [subscription])
|
||||
|
||||
useEffect(() => {
|
||||
if (analytics?.view !== undefined && !subscription && defaultValues?.view === undefined) {
|
||||
if (
|
||||
typeof analytics?.view === "number" &&
|
||||
!subscription &&
|
||||
typeof defaultValues?.view !== "number"
|
||||
) {
|
||||
form.setValue("view", `${analytics.view}`)
|
||||
}
|
||||
}, [analytics, subscription, defaultValues?.view])
|
||||
|
|
|
|||
Loading…
Reference in New Issue