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

don't force `table` visualization on a :rows query if the display is set to `pin_map`

parent 3dde0f0c
No related branches found
No related tags found
No related merge requests found
......@@ -469,9 +469,10 @@ CardControllers.controller('CardDetail', [
card.display = "table";
} else if (dataset_query.type === "query" &&
dataset_query.query.aggregation &&
dataset_query.query.aggregation.length > 0 &&
dataset_query.query.aggregation[0] === "rows") {
dataset_query.query.aggregation &&
dataset_query.query.aggregation.length > 0 &&
dataset_query.query.aggregation[0] === "rows" &&
card.display !== "pin_map") {
// if our query aggregation is "rows" then ALWAYS set the display to "table"
card.display = "table";
}
......
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