Fix parsing empty Webdav property nodes
Return empty string instead of undefined
This commit is contained in:
parent
3a6d065e50
commit
d81c00304f
|
@ -92,7 +92,7 @@
|
|||
|
||||
for (var key in propStat.properties) {
|
||||
var propKey = key;
|
||||
if (davProperties[key]) {
|
||||
if (key in davProperties) {
|
||||
propKey = davProperties[key];
|
||||
}
|
||||
props[propKey] = propStat.properties[key];
|
||||
|
|
|
@ -243,7 +243,7 @@ dav.Client.prototype = {
|
|||
}
|
||||
}
|
||||
|
||||
return content || propNode.textContent || propNode.text;
|
||||
return content || propNode.textContent || propNode.text || '';
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue