Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

Commit

Permalink
fix live check
Browse files Browse the repository at this point in the history
  • Loading branch information
SoMuchForSubtlety committed Oct 27, 2019
1 parent e210218 commit b73ab01
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions node.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@ func getLiveNode() (bool, *tview.TreeNode, error) {
firstContent := ""
found := false
for _, item := range home.Objects[0].Items {
firstContent = item.ContentURL.Items[0].ContentURL.Self
if strings.Contains(firstContent, "/api/event-occurrence/") {
found = true
break
if len(item.ContentURL.Items) > 0 {
firstContent = item.ContentURL.Items[0].ContentURL.Self
if strings.Contains(firstContent, "/api/event-occurrence/") {
found = true
break
}
}
}
if found {
Expand Down

0 comments on commit b73ab01

Please # to comment.