@@ -20,7 +20,10 @@ import "../Components"
20DashRenderer {
20DashRenderer {
23− readonly property int collapsedRows: cardTool && cardTool.template && cardTool.template["collapsed-rows"]
23+ readonly property int collapsedRows: {
24+ if (!cardTool || !cardTool.template || typeof cardTool.template["collapsed-rows"] != "number") return 2;
25+ return cardTool.template["collapsed-rows"];
25 expandedHeight: grid.totalContentHeight
28 expandedHeight: grid.totalContentHeight
26 collapsedHeight: Math.min(grid.contentHeightForRows(collapsedRows), expandedHeight)
29 collapsedHeight: Math.min(grid.contentHeightForRows(collapsedRows), expandedHeight)