Skip to content

Commit

Permalink
revert: filter query on asset models
Browse files Browse the repository at this point in the history
  • Loading branch information
ssjagad authored and diehbria committed Nov 21, 2023
1 parent 16babf6 commit c5aa946
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,17 @@ const LineScatterChartWidgetComponent: React.FC<LineScatterChartWidget> = (widge
};
})
.filter((asset) => asset.properties.length > 0) ?? [],
assetModels:
query?.assetModels
?.map((assetModel) => {
const { assetModelId, assetIds, properties } = assetModel;
return {
assetModelId,
assetIds,
properties: properties.filter((p) => p.visible ?? true),
};
})
.filter((assetModel) => assetModel.properties.length > 0) ?? [],
};

const queries = useQueries(filteredQuery);
Expand Down

0 comments on commit c5aa946

Please sign in to comment.