From 9d27687bc810d223a1f2644c7a9ebb614a31edb1 Mon Sep 17 00:00:00 2001 From: kyu08 <49891479+kyu08@users.noreply.github.com> Date: Sat, 1 Jun 2024 19:26:42 +0900 Subject: [PATCH] hide loading message during pagination --- ui/components/prssection/prssection.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ui/components/prssection/prssection.go b/ui/components/prssection/prssection.go index 49d25b2d..81823c53 100644 --- a/ui/components/prssection/prssection.go +++ b/ui/components/prssection/prssection.go @@ -362,8 +362,11 @@ func (m *Model) FetchNextPageSectionRows() []tea.Cmd { } cmds = append(cmds, fetchCmd) - m.Table.SetIsLoading(true) - cmds = append(cmds, m.Table.StartLoadingSpinner()) + if m.PageInfo == nil { + m.Table.SetIsLoading(true) + cmds = append(cmds, m.Table.StartLoadingSpinner()) + + } return cmds }