Skip to content

Conversation

@d1vyanshu-kumar
Copy link

Screenshot 2024-06-24 at 4 53 51 PM

Copy link
Member

@vinayvenu vinayvenu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is best to get the group information directly from the form instead of calling the /exports for every form usage.

Also, we need to figure out errors will affect the page instead of silently swallowing them

});
}
} catch (error) {
console.error("Error fetching usage data:", error);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if the method fails? Will the screen still work?


if (usageResponse.data.forms) {
usageResponse.data.forms.forEach(form => {
fetchFormData(form.formUUID);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of doing this, why not enhance the /web/concept/usage url to give you all the data instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants