fix: restore note even if no deletion date (retrocompat)

This commit is contained in:
quenousimporte 2023-09-29 22:51:07 +02:00
parent e714b4684c
commit 053feb3170
1 changed files with 1 additions and 1 deletions

View File

@ -2349,7 +2349,7 @@ function restoredeleted()
{
var title = item.split(" - deleted on ").shift();
var stamp = item.split(" - deleted on ").pop();
var index = trash.findIndex(n => n.title == title && n.deletiondate == stamp);
var index = trash.findIndex(n => n.title == title && (!n.deletiondate || n.deletiondate == stamp));
if (index > -1)
{
var notetorestore = trash.splice(index, 1).pop();