stream_settings_components: Don't return result of ajax calls.

These weren't being used anywhere.
This commit is contained in:
evykassirer 2024-10-15 13:18:15 -07:00 committed by Tim Abbott
parent 9455548b49
commit aa0af2277a
1 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ export function ajaxSubscribe(stream, color, $stream_row) {
if ($stream_row !== undefined) {
display_subscribe_toggle_spinner($stream_row);
}
return channel.post({
channel.post({
url: "/json/users/me/subscriptions",
data: {subscriptions: JSON.stringify([{name: stream, color}])},
success(_resp, _statusText, xhr) {
@ -191,7 +191,7 @@ function ajaxUnsubscribe(sub, $stream_row) {
if ($stream_row !== undefined) {
display_subscribe_toggle_spinner($stream_row);
}
return channel.del({
channel.del({
url: "/json/users/me/subscriptions",
data: {subscriptions: JSON.stringify([sub.name])},
success() {