Skip to content

Commit

Permalink
If an empty Matrix is returned from MatrixItemFunc, fetch function sh…
Browse files Browse the repository at this point in the history
…ould not be called. Closes #496
  • Loading branch information
kaidaguerre committed Jan 25, 2023
1 parent 95612a4 commit af54e36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/table_fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ func (t *Table) doList(ctx context.Context, queryData *QueryData, listCall Hydra
rd := newRowData(queryData, nil)

// if a matrix is defined, run listForEach
if len(queryData.Matrix) > 0 {
if queryData.Matrix != nil {
log.Printf("[TRACE] doList: matrix len %d - calling listForEach", len(queryData.Matrix))
t.listForEach(ctx, queryData, listCall)
} else {
Expand Down

0 comments on commit af54e36

Please sign in to comment.