From 2fa1e5a51083fa86a70e2a77aecae37a6cef4ef8 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 20 Sep 2018 05:25:15 +0300 Subject: [PATCH] notes... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/history.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui (gen4)/features/history.js b/ui (gen4)/features/history.js index 5dd2c610..f210d4f5 100755 --- a/ui (gen4)/features/history.js +++ b/ui (gen4)/features/history.js @@ -160,6 +160,8 @@ var URLHistoryActions = actions.Actions({ var to_remove = Object.keys(this.url_history) // we will not remove pinned items... .filter(function(e){ + // NOTE: .pinned can be 0 so we can't just use + // that.url_history[e].pinned as a test... return that.url_history[e].pinned == null }) // we clear the head of the list -- first/oldest urls added... to_remove.reverse()