Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion server/apiProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ export const proxyApiHandler =
(evolvingPath: string, urlParamName: string) =>
evolvingPath.replace(
':' + urlParamName,
req.params[urlParamName] || '',
Array.isArray(req.params[urlParamName])

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had to do this to make the pre-commit checks happy

? req.params[urlParamName].join('/')
: req.params[urlParamName] || '',
),
path,
)
Expand Down
Loading
Loading