From ac5f119519d33b5c58ff00f896d5559dddf54d0c Mon Sep 17 00:00:00 2001 From: Peyton Lee Date: Tue, 3 Dec 2024 14:52:13 -0800 Subject: [PATCH] refactor: Code cleanup --- src/colorizer/utils/url_utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/colorizer/utils/url_utils.ts b/src/colorizer/utils/url_utils.ts index 30a10531d..5a9808937 100644 --- a/src/colorizer/utils/url_utils.ts +++ b/src/colorizer/utils/url_utils.ts @@ -451,7 +451,7 @@ function deserializeVectorConfig(params: URLSearchParams): Partial const newConfig: Partial = {}; newConfig.visible = decodeBoolean(params.get(UrlParam.SHOW_VECTOR)); newConfig.color = decodeHexColor(params.get(UrlParam.VECTOR_COLOR)); - newConfig.key = decodeString(params.get(UrlParam.VECTOR_KEY)) ?? undefined; + newConfig.key = decodeString(params.get(UrlParam.VECTOR_KEY)); newConfig.scaleFactor = decodeFloat(params.get(UrlParam.VECTOR_SCALE)); newConfig.timeIntervals = decodeInt(params.get(UrlParam.VECTOR_TIME_INTERVALS));