Channel saving logic was inverted.

This commit is contained in:
Roland 2026-02-05 11:12:44 -07:00
parent 217474b5c4
commit a9b2ec321e
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680

View file

@ -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);
}
}