Skip to content

Commit 4558845

Browse files
committed
fix(prs): remove shown pr in sidebar when refreshing
1 parent ec43160 commit 4558845

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

imposters/pr.imp.json

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
[{
2-
"request": {
3-
"method": "POST",
4-
"endpoint": "/api/graphql"
5-
},
6-
"response": {
7-
"status": 200,
8-
"headers": {
9-
"Content-Type": "application/json"
10-
},
11-
"bodyFile": "pr.json"
12-
}
1+
[
2+
{
3+
"request": {
4+
"method": "POST",
5+
"endpoint": "/api/graphql"
6+
},
7+
"response": {
8+
"status": 200,
9+
"delay": "1s",
10+
"headers": {
11+
"Content-Type": "application/json"
12+
},
13+
"bodyFile": "pr.json"
1314
}
15+
}
1416
]

ui/ui.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
238238
case key.Matches(msg, m.keys.Refresh):
239239
currSection.ResetFilters()
240240
currSection.ResetRows()
241+
m.syncSidebar()
241242
currSection.SetIsLoading(true)
242243
cmds = append(cmds, currSection.FetchNextPageSectionRows()...)
243244

0 commit comments

Comments
 (0)