add empty variables to json seafile
This commit is contained in:
@ -42,7 +42,14 @@ if(url !== null) {
|
||||
}
|
||||
for(let i=0; i<props.length; i++) {
|
||||
const prop = props[i];
|
||||
if((prop.key.type === "Identifier") && (prop.value.type === "Literal") && (prop.value.value != "")) {
|
||||
if((prop.key.type === "Identifier") && (prop.value.type === "Literal")) {
|
||||
data[prop.key.name] = prop.value.value;
|
||||
}
|
||||
}
|
||||
for(let i=0; i<props.length; i++) {
|
||||
const prop = props[i];
|
||||
const valid = (new Boolean(prop.value.value)).valueOf();
|
||||
if((prop.key.type === "Identifier") && (prop.value.type === "Literal") && valid) {
|
||||
data[prop.key.name] = prop.value.value;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user