getQueryString 값이 null 인 경우 빈 값으로 수정

This commit is contained in:
김민식 2025-02-07 11:13:41 +09:00
parent b6fa46a37d
commit 9cf79f44cc

View File

@ -130,7 +130,7 @@ export const calculateFlowDirection = (canvasAngle) => {
*/
export const getQueryString = (o) => {
const queryString = Object.keys(o)
.map((key) => `${key}=${o[key]}`)
.map((key) => `${key}=${o[key] ?? ''}`)
.join('&')
return `?${queryString}`
}