Fix invalid arguments fault in refresh preset

Happens when upgrading from v1.1 where genieacs-gui creates refresh
configuration with 'age' passed as a string.
This commit is contained in:
Zaid Abdulla committed 2020-09-23 23:15:00 -07:00
1 parent 9286bd6aa0
commit 82124d471e
1 file changed
+1 -1
+1 -1
View File
@@ -188,7 +188,7 @@ async function fetchPresets(): Promise<Preset[]> {
for (const c of preset["configurations"]) {
switch (c.type) {
case "age":
_provisions.push(["refresh", c.name, c.age]);
_provisions.push(["refresh", c.name, +c.age]);
break;
case "value":