Skip to content

Commit efd46f5

Browse files
committed
Do not show dimensions on hidden query.
1 parent b0b3ce4 commit efd46f5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/datasource.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,14 @@ 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 (!spaceId || !roomId || !contextId || hide) {
29+
if (hide) {
30+
const frame = new MutableDataFrame({
31+
refId: refId,
32+
});
33+
return Promise.resolve(frame);
34+
}
35+
36+
if (!spaceId || !roomId || !contextId) {
3037
const frame = new MutableDataFrame({
3138
refId: refId,
3239
fields: [

0 commit comments

Comments
 (0)