Skip to content

Commit

Permalink
Do not show dimensions on hidden query.
Browse files Browse the repository at this point in the history
  • Loading branch information
novykh committed Nov 21, 2023
1 parent b0b3ce4 commit efd46f5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,14 @@ export class DataSource extends DataSourceApi<MyQuery, MyDataSourceOptions> {

const promises = options.targets.map(
({ spaceId, roomId, contextId, nodes, groupBy, method, refId, dimensions, filterBy, filterValue, hide }) => {
if (!spaceId || !roomId || !contextId || hide) {
if (hide) {
const frame = new MutableDataFrame({
refId: refId,
});
return Promise.resolve(frame);
}

if (!spaceId || !roomId || !contextId) {
const frame = new MutableDataFrame({
refId: refId,
fields: [
Expand Down

0 comments on commit efd46f5

Please sign in to comment.