Save preset weight as int

This commit is contained in:
Zaid Abdulla committed 2018-12-27 01:21:18 -08:00
1 parent dc822cab9b
commit f475565365
1 file changed
+2
+2
View File
@@ -485,6 +485,8 @@ function preProcessPreset(data) {
: {};
preset.precondition = JSON.stringify(preset.precondition);
preset.weight = parseInt(preset.weight) || 0;
const events = {};
if (preset.events) {
for (let e of preset.events.split(",")) {