Skip to content

Commit b0b3ce4

Browse files
committed
Return empty on hide.
1 parent 4453499 commit b0b3ce4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/datasource.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@ export class DataSource extends DataSourceApi<MyQuery, MyDataSourceOptions> {
2626

2727
const promises = options.targets.map(
2828
({ spaceId, roomId, contextId, nodes, groupBy, method, refId, dimensions, filterBy, filterValue, hide }) => {
29-
if (hide) {
30-
return;
31-
}
32-
33-
if (!spaceId || !roomId || !contextId) {
29+
if (!spaceId || !roomId || !contextId || hide) {
3430
const frame = new MutableDataFrame({
3531
refId: refId,
3632
fields: [

0 commit comments

Comments
 (0)