Not set expiration date is represented as 0
This commit is contained in:
parent
ab3c8d4de9
commit
c809db86f5
1 changed files with 4 additions and 1 deletions
|
@ -82,7 +82,10 @@
|
|||
|
||||
// add row with expiration date for link only shares - influenced by _createRow of filelist
|
||||
if (this._linksOnly) {
|
||||
var expirationTimestamp = moment(fileData.shares[0].expiration).valueOf();
|
||||
var expirationTimestamp = 0;
|
||||
if(fileData.shares[0].expiration !== null) {
|
||||
expirationTimestamp = moment(fileData.shares[0].expiration).valueOf();
|
||||
}
|
||||
$tr.attr('data-expiration', expirationTimestamp);
|
||||
|
||||
// date column (1000 milliseconds to seconds, 60 seconds, 60 minutes, 24 hours)
|
||||
|
|
Loading…
Reference in a new issue