I have data, etc etc. I asked the ai to do it, nothing is showing on the calendar and I have 7 events.
Someone has an idea why ?
I have data, etc etc. I asked the ai to do it, nothing is showing on the calendar and I have 7 events.
Someone has an idea why ?
Maybe the elements data type doesn’t fit
your events.data, you can check by clicking on the green “expected format?” and it will show the type of data that needed.
I think it expects specifically “title” instead of “name”,
“start” instead of “start_date” and “end” instead of “end_start”
You where right even if you plug after the right field, it needs to be exactly the same name. A bit strange.
I think I’m coming up against this same issue - is what you’re saying that the fields in the DB need to match “start” “title” etc?
The straight forward way is to change it on the backend like you described, or you can on the frontend manipulate the data so it will match the Expected format
Cool, thank you. I think I’ll raise this with the team as a bug as it seems … odd. But glad there’s a workaround for now.
I dont think it’s a bug, in the end the elements need to know which attributs are relevant to him . lets say you added new attribute for the object named “expected_finishing_date”, how will it know if the “relevant” end date is the "expected_finishing_date"or the “end_start”. so it works with specific Expected attribute.
Yes I had to change the name in Supabase, even if under you bind them it doesn’t work, it needs to be the same name as they want. it’s a bit strange.
It definitely feels like unexpected behaviour to me - what if I had to rename the field for another component down the line?
Solved in the FE for now via the Javascript below, taking my field scheduled_at
and turning it into “start”
// Get the data array from collection
const data = collections[' *COLLECTION ID* ']?.['data'] || [];
// Map to return the scheduled_at field as "start"
const result = data.map(item => ({
start: item.scheduled_at,
title: "Available"
}));
return result;
I think in the end this how elements work, and in you can always edit the code of the element to fit your need.