diff --git a/frontend/web/src/admin/modules/channels/channelStatus.ts b/frontend/web/src/admin/modules/channels/channelStatus.ts index 2cd9aa4..906333e 100644 --- a/frontend/web/src/admin/modules/channels/channelStatus.ts +++ b/frontend/web/src/admin/modules/channels/channelStatus.ts @@ -31,8 +31,8 @@ export type ChannelListState = "ready" | "pending" | "unknown"; /** List-level tri-state: a list we never read plus a recorded error is *unknown*, * never "empty". `data == null` with no error is the first load still running. */ -export function channelListState( - data: readonly AdminChannelRecord[] | null, +export function channelListState( + data: readonly T[] | null, error: string | null, ): ChannelListState { if (data != null) return "ready";