's'
This commit is contained in:
@@ -17,9 +17,9 @@ import { LivePipelineStrip } from "@/components/live-product/LivePipelineStrip";
|
||||
import { LiveProcessLiveLogCard } from "@/components/live-product/LiveProcessLiveLogCard";
|
||||
import {
|
||||
defaultPm2NameForChannel,
|
||||
fetchYoutubeProChannelsRemote,
|
||||
loadYoutubeProChannels,
|
||||
newChannelId,
|
||||
parseYoutubeProChannelList,
|
||||
pushYoutubeProChannelsRemote,
|
||||
saveYoutubeProChannels,
|
||||
type YoutubeProChannel,
|
||||
@@ -271,8 +271,7 @@ export function LiveYoutubeUnmannedView({
|
||||
let cancelled = false;
|
||||
void (async () => {
|
||||
try {
|
||||
const data = await fetchJson<{ channels?: unknown }>("/hub/youtube_pro_channels");
|
||||
const fromServer = parseYoutubeProChannelList(data.channels);
|
||||
const fromServer = await fetchYoutubeProChannelsRemote(fetchJson);
|
||||
if (fromServer.length && !cancelled) {
|
||||
setChannels(fromServer);
|
||||
saveYoutubeProChannels(fromServer);
|
||||
|
||||
Reference in New Issue
Block a user