Skip to content

Commit 8cfe837

Browse files
committed
extracting rows from asn empty table returns an empty list
1 parent 901622b commit 8cfe837

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tables/service.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,10 @@ func ReadTable(ctx context.Context, projectOID, tableOID string, parameters map[
232232
return nil, err
233233
}
234234

235+
if data.Rows == nil {
236+
data.Rows = make([]map[string]interface{}, 0)
237+
}
238+
235239
return data, nil
236240
}
237241

0 commit comments

Comments
 (0)