Skip to content

Commit

Permalink
handle null
Browse files Browse the repository at this point in the history
  • Loading branch information
AdheipSingh committed Nov 4, 2024
1 parent 774b136 commit a191b06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/model/savedQueries.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,9 @@ func fetchFilters(client *http.Client, profile *config.Profile) []list.Item {
// This returns only the SQL type filters
var userSavedQueries []list.Item
for _, filter := range filters {

if filter.Query.FilterQuery == nil {
continue // Skip this filter if FilterQuery is null
}
queryBytes, _ := json.Marshal(filter.Query.FilterQuery)

userSavedQuery := Item{
Expand Down

0 comments on commit a191b06

Please sign in to comment.