We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c90cea commit e77af27Copy full SHA for e77af27
site/src/api/api.ts
@@ -307,8 +307,11 @@ export type GetTemplatesOptions = Readonly<{
307
function normalizeGetTemplatesOptions(
308
options: GetTemplatesOptions = {},
309
): Record<string, string> {
310
- const { deprecated = false } = options;
311
- return { deprecated: String(deprecated) };
+ const params: Record<string, string> = {};
+ if (options.deprecated !== undefined) {
312
+ params["deprecated"] = String(options.deprecated);
313
+ }
314
+ return params;
315
}
316
317
type SearchParamOptions = TypesGen.Pagination & {
0 commit comments