Skip to content
Snippets Groups Projects
Commit b92db1fc authored by Allen Gilliland's avatar Allen Gilliland
Browse files

move our conditional up a bit to avoid running it when we are showing the object details.

parent 7bd0208e
No related branches found
No related tags found
No related merge requests found
......@@ -475,6 +475,12 @@ CardControllers.controller('CardDetail', [
} else {
isObjectDetail = false;
// if we are display bare rows, filter out columns with preview_display = false
if (Query.isStructured(dataset_query) &&
Query.isBareRowsAggregation(dataset_query.query)) {
queryResult.data = DataGrid.filterOnPreviewDisplay(queryResult.data);
}
}
// try a little logic to pick a smart display for the data
......@@ -499,12 +505,6 @@ CardControllers.controller('CardDetail', [
card.display = "table";
}
// if we are display bare rows, filter out columns with preview_display = false
if (Query.isStructured(dataset_query) &&
Query.isBareRowsAggregation(dataset_query.query)) {
queryResult.data = DataGrid.filterOnPreviewDisplay(queryResult.data);
}
renderAll();
}, function (error) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment