Skip to content

Commit e77af27

Browse files
committed
dtt
1 parent 8c90cea commit e77af27

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

site/src/api/api.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,11 @@ export type GetTemplatesOptions = Readonly<{
307307
function normalizeGetTemplatesOptions(
308308
options: GetTemplatesOptions = {},
309309
): Record<string, string> {
310-
const { deprecated = false } = options;
311-
return { deprecated: String(deprecated) };
310+
const params: Record<string, string> = {};
311+
if (options.deprecated !== undefined) {
312+
params["deprecated"] = String(options.deprecated);
313+
}
314+
return params;
312315
}
313316

314317
type SearchParamOptions = TypesGen.Pagination & {

0 commit comments

Comments
 (0)