feat(frontend): ScheduleConfig V2 types, weekday schema, export update
This commit is contained in:
@@ -71,7 +71,9 @@ export function ChannelCard({
|
||||
onMoveDown,
|
||||
}: ChannelCardProps) {
|
||||
const [confirmOpen, setConfirmOpen] = useState(false);
|
||||
const blockCount = channel.schedule_config.blocks.length;
|
||||
const blockCount = Object.values(channel.schedule_config.day_blocks).reduce(
|
||||
(sum, blocks) => sum + blocks.length, 0
|
||||
);
|
||||
const { status, label } = useScheduleStatus(channel.id);
|
||||
|
||||
const scheduleColor =
|
||||
|
||||
Reference in New Issue
Block a user