We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2168057 commit 0710e62Copy full SHA for 0710e62
1 file changed
apps/sim/app/api/templates/route.ts
@@ -155,7 +155,7 @@ export const GET = withRouteHandler(async (request: NextRequest) => {
155
.from(templates)
156
.where(whereCondition)
157
158
- const total = totalCount[0]?.count || 0
+ const total = Number(totalCount[0]?.count ?? 0)
159
160
const visibleResults =
161
params.workflowId && !isSuperUser
0 commit comments