aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/History.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/util/History.ts')
-rw-r--r--src/client/util/History.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/util/History.ts b/src/client/util/History.ts
index e6f75a7db..cbe36b401 100644
--- a/src/client/util/History.ts
+++ b/src/client/util/History.ts
@@ -103,7 +103,8 @@ export namespace HistoryUtil {
return undefined;
}
const parser = requiredFields[required];
- const value = parse(parser, opts[required]);
+ let value = opts[required];
+ value = parse(parser, value);
if (value !== null && value !== undefined) {
current[required] = value;
}
@@ -113,7 +114,8 @@ export namespace HistoryUtil {
continue;
}
const parser = optionalFields[opt];
- const value = parse(parser, opts[opt]);
+ let value = opts[opt];
+ value = parse(parser, value);
if (value !== undefined) {
current[opt] = value;
}