avoid concatenating 'undefined' in drive interface
parent
c210f097c0
commit
f8399eaaa6
|
@ -2673,11 +2673,14 @@ define([
|
|||
var data = JSON.parse(JSON.stringify(filesOp.getFileData(el)));
|
||||
if (!data || !data.href) { return void cb('INVALID_FILE'); }
|
||||
data.href = base + data.href;
|
||||
|
||||
var roUrl;
|
||||
if (ro) {
|
||||
data.roHref = data.href;
|
||||
delete data.href;
|
||||
} else {
|
||||
data.roHref = base + getReadOnlyUrl(el);
|
||||
roUrl = getReadOnlyUrl(el);
|
||||
if (roUrl) { data.roHref = base + roUrl; }
|
||||
}
|
||||
|
||||
UIElements.getProperties(common, data, cb);
|
||||
|
|
Loading…
Reference in New Issue