improvement for the backend api
This commit is contained in:
@@ -48,8 +48,8 @@ export default function CreateCreativePage() {
|
||||
|
||||
const loadChannels = async () => {
|
||||
try {
|
||||
const response = await channelsApi.list({ is_active: true });
|
||||
setChannels(response.data);
|
||||
const response = await channelsApi.list();
|
||||
setChannels(response.target_channels.filter((c) => c.is_active));
|
||||
} catch (err) {
|
||||
console.error("Error loading channels:", err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user