|
|
|
@ -320,9 +320,10 @@ export default definePlugin({
|
|
|
|
|
</svg>
|
|
|
|
|
</h2>
|
|
|
|
|
);
|
|
|
|
|
}),
|
|
|
|
|
}, { noop: true }),
|
|
|
|
|
|
|
|
|
|
renderChannel(sectionIndex: number, index: number, ChannelComponent: React.ComponentType<ChannelComponentProps>) {
|
|
|
|
|
return ErrorBoundary.wrap(() => {
|
|
|
|
|
const { channel, category } = this.getChannel(sectionIndex, index, this.instance.props.channels);
|
|
|
|
|
|
|
|
|
|
if (!channel || !category) return null;
|
|
|
|
@ -336,9 +337,9 @@ export default definePlugin({
|
|
|
|
|
{channel.id}
|
|
|
|
|
</ChannelComponent>
|
|
|
|
|
);
|
|
|
|
|
}, { noop: true });
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getChannel(sectionIndex: number, index: number, channels: Record<string, Channel>) {
|
|
|
|
|
const category = categories[sectionIndex - 1];
|
|
|
|
|
if (!category) return { channel: null, category: null };
|
|
|
|
|