Skip to content

Commit 2418172

Browse files
author
Gemini CLI
committed
fix(std-platform-fe): listDeriveLinks -- skip undefined query params (was sending strategy=undefined)
1 parent 876b5b6 commit 2418172

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

frontend/src/components/datapanel/standards/standardsApi.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,11 @@ export const listDeriveStrategies = () =>
332332
export const listDeriveLinks = (params: {version_id: string;
333333
strategy?: string;
334334
status?: string}) => {
335-
const q = new URLSearchParams(params as Record<string,string>).toString();
335+
const filtered: Record<string,string> = {};
336+
for (const [k, v] of Object.entries(params)) {
337+
if (v !== undefined && v !== null) filtered[k] = v;
338+
}
339+
const q = new URLSearchParams(filtered).toString();
336340
return fetch(`/api/std/derive/links?${q}`)
337341
.then(j<{links: DerivedLink[]}>);
338342
};

0 commit comments

Comments
 (0)