mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Channel saving logic was inverted.
This commit is contained in:
parent
217474b5c4
commit
a9b2ec321e
1 changed files with 2 additions and 2 deletions
|
|
@ -565,11 +565,11 @@ export const useChannel = (channel_id) => {
|
|||
};
|
||||
|
||||
if (channel_id) {
|
||||
return await updateChannel(channel_id, body);
|
||||
} else {
|
||||
// Can create a Channel with a Tag.
|
||||
body.tag_name = form.formData.tag_name;
|
||||
return await createChannel(body);
|
||||
} else {
|
||||
return await updateChannel(channel_id, body);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue