Skip to content

Commit

Permalink
Remove ! usage
Browse files Browse the repository at this point in the history
  • Loading branch information
adrinr committed Jan 8, 2025
1 parent a414505 commit 0784a95
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/frontend-core/src/api/views.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ export const buildViewEndpoints = (API: BaseAPIClient): ViewEndpoints => ({
fetchViewData: async (name, { field, groupBy, calculation }) => {
const params = new URLSearchParams()
if (calculation) {
params.set("field", field!)
if (field) {
params.set("field", field)
}
params.set("calculation", calculation)
}
if (groupBy) {
Expand Down

0 comments on commit 0784a95

Please sign in to comment.