Skip to content

Commit

Permalink
fix get request error when a tree node is clicked (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
mirzakhany authored Jan 29, 2025
1 parent b371530 commit 83da84c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ui/pages/requests/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,16 @@ func (c *Controller) saveCollectionToDisc(id string) {
}

func (c *Controller) onTreeViewNodeClicked(id string) {
c.viewRequest(id)
nodeType := c.view.GetTreeViewNodeType(id)
if nodeType == "" {
return
}

if nodeType == TypeCollection {
c.viewCollection(id)
} else if nodeType == TypeRequest {
c.viewRequest(id)
}
}

func (c *Controller) onTreeViewMenuClicked(id, action string) {
Expand Down

0 comments on commit 83da84c

Please sign in to comment.