Closed mnbro closed 4 days ago
To resolve the issue where no data can be added from the web interface after a fresh install, follow these steps:
Check ActivityTargetsInlineCell.tsx
:
ActivityTargetsInlineCell
component handles cases where activityTargetObjectRecords
is empty.overridenIsFieldEmpty
prop to handle empty states correctly.const { FieldContextProvider: ActivityTargetsContextProvider } = useFieldContext({
objectNameSingular: CoreObjectNameSingular.Activity,
objectRecordId: activity.id,
fieldMetadataName: 'activityTargets',
fieldPosition: 3,
overridenIsFieldEmpty: activityTargetObjectRecords.length === 0,
});
Check EventRowDynamicComponent.tsx
:
EventRowDynamicComponent
handles cases where event.name
is not defined or empty.default:
return <div>No events available</div>;
Check TimelineActivitiesQueryEffect.tsx
:
useActivities
hook handles cases where no activities are returned.const activities = useActivities(targetableObject);
if (!activities.length) {
return <div>No activities available</div>;
}
Check EventsGroup.tsx
:
EventsGroup
component handles cases where the group
object is empty.if (!group.events.length) {
return <div>No events available for this group</div>;
}
These changes should ensure that the web interface can handle cases where there is no data and allow users to add new data.
/packages/twenty-front/src/modules/activities/inline-cell/components/ActivityTargetsInlineCell.tsx /packages/twenty-front/src/modules/activities/timelineActivities/rows/components/EventRowDynamicComponent.tsx /packages/twenty-front/src/modules/activities/timelineActivities/rows/activity/components/EventRowActivity.tsx /packages/twenty-front/src/modules/activities/timelineActivities/rows/message/components/EventRowMessage.tsx /packages/twenty-front/src/modules/activities/timelineActivities/components/TimelineActivitiesQueryEffect.tsx /packages/twenty-front/src/modules/activities/timelineActivities/components/EventsGroup.tsx
Sorry closing since it's an old issue and it's probably linked to a setup issue at the time.
Hi,
For all versions : v0.21.x of twentycrm, after a fresh Install if i delete all pre-generated records for an Object, one cannot add any data from web interface, only using REST/GraphQL API.
When the buttons '+' or '+ Add Object' are clicked nothing happens.
Is there any other info that I can offer in order this bug to be solved ?