Skip to content

Commit 366cfa4

Browse files
Revert "Fix for DurationBreakdown insight to keep correct active page after automatic refresh"
This reverts commit 5923b7c.
1 parent 8f96ee0 commit 366cfa4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/kotlin/org/digma/intellij/plugin/ui/list/insights/DurationBreakdownPanel.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@ fun spanDurationBreakdownPanel(
5353

5454
//calculate how many pages there are
5555
lastPageNum = validBreakdownEntries.size / RECORDS_PER_PAGE + if (validBreakdownEntries.size % RECORDS_PER_PAGE != 0) 1 else 0
56-
if (currPageNum == 0) {
57-
currPageNum = if (lastPageNum > 0) 1 else 0
58-
}
56+
currPageNum = if (lastPageNum > 0) 1 else 0
5957

6058
updateDurationBreakdownPanel(validBreakdownEntries)
6159
return createInsightPanel(

0 commit comments

Comments
 (0)