set active channel in publish form on load
This commit is contained in:
parent
02019edcb7
commit
ca4ca536fa
1 changed files with 3 additions and 1 deletions
|
@ -229,8 +229,10 @@ function PublishForm(props: Props) {
|
|||
}, [mode, updatePublishForm]);
|
||||
|
||||
useEffect(() => {
|
||||
if (activeChannelName) {
|
||||
if (incognito) {
|
||||
updatePublishForm({ channel: undefined });
|
||||
} else if (activeChannelName) {
|
||||
updatePublishForm({ channel: activeChannelName });
|
||||
}
|
||||
}, [activeChannelName, incognito, updatePublishForm]);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue