mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-19 11:29:57 -05:00
81c2bd365a
The modal cast getResponse's TResponse result to TResponseWithQuotas, silently dropping quota info for the SingleResponseCard rendered inside (hasQuotas was always false, hiding the decrement-quotas checkbox on delete). Add a dedicated getResponseWithQuotas service that fetches quotaLinks alongside the response, and have getResponseAction use it. Keeps the public Management API v1 GET response shape unchanged and avoids adding a quotaLinks join to the auth-helper hot paths (getOrganizationIdFromResponseId / getWorkspaceIdFromResponseId).