From c8b9830298e094b8ec6d15d5f1e7a89a9f8ef93c Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 16 May 2019 16:10:13 +0200 Subject: [PATCH] Fix duplicate entries in the recent pads --- www/drive/inner.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/www/drive/inner.js b/www/drive/inner.js index a58cee94f..f6146fb4e 100644 --- a/www/drive/inner.js +++ b/www/drive/inner.js @@ -2465,6 +2465,8 @@ define([ var header7, header28, headerOld; var i = 0; + var channels = []; + $list.append(h('li.cp-app-drive-element-separator', h('span', Messages.drive_active1Day))); filesList.some(function (arr) { if (i >= limit) { return true; } @@ -2481,6 +2483,8 @@ define([ var path = paths[0]; if (manager.isPathIn(path, [TRASH])) { return; } + if (channels.indexOf(file.channel) !== -1) { return; } + channels.push(file.channel); if (!header7 && file.atime < last1) { $list.append(h('li.cp-app-drive-element-separator', h('span', Messages.drive_active7Days)));