Save preset weight as int
This commit is contained in:
1 parent
dc822cab9b
commit
f475565365
1 file changed
+2
@@ -485,6 +485,8 @@ function preProcessPreset(data) {
|
|||||||
: {};
|
: {};
|
||||||
preset.precondition = JSON.stringify(preset.precondition);
|
preset.precondition = JSON.stringify(preset.precondition);
|
||||||
|
|
||||||
|
preset.weight = parseInt(preset.weight) || 0;
|
||||||
|
|
||||||
const events = {};
|
const events = {};
|
||||||
if (preset.events) {
|
if (preset.events) {
|
||||||
for (let e of preset.events.split(",")) {
|
for (let e of preset.events.split(",")) {
|
||||||
|
|||||||
Reference in new issue
Block a user