From c80d616885df0d801aa2f4fa0ada0d19c8d34709 Mon Sep 17 00:00:00 2001 From: Sid85-vit <63711974+Sid85-vit@users.noreply.github.com> Date: Tue, 14 Jul 2020 10:21:00 +0530 Subject: [PATCH] line 1361- let pinnedIndex = -1 --- grid.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grid.user.js b/grid.user.js index 4e8db1b..2337e8a 100644 --- a/grid.user.js +++ b/grid.user.js @@ -1358,7 +1358,7 @@ ordering.sort((a, b) => a.name.localeCompare(b.name) || a.id.localeCompare(b.id)) // Set Pinned Index for use in CSS loop. If there is no pin, use the presenter if available - let pinnedIndex = ret.findIndex(v => v[magicKey].isPinned()) + let pinnedIndex = -1 if (pinnedIndex < 0) { pinnedIndex = ret.findIndex(v => v.__gmgvIsPresentation) }