Skip to content

Commit 0710e62

Browse files
committed
fix inocrrect type casting
1 parent 2168057 commit 0710e62

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/sim/app/api/templates/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export const GET = withRouteHandler(async (request: NextRequest) => {
155155
.from(templates)
156156
.where(whereCondition)
157157

158-
const total = totalCount[0]?.count || 0
158+
const total = Number(totalCount[0]?.count ?? 0)
159159

160160
const visibleResults =
161161
params.workflowId && !isSuperUser

0 commit comments

Comments
 (0)