@@ -169,16 +169,19 @@ Item {
171 id: attributesModel
171 id: attributesModel
172− property int numOfAttributes: {
172+ property int numOfAttributes: 0
173+ property var model: []
174+ property bool hasAttributes: {
173 var attributes = components["attributes"];
175 var attributes = components["attributes"];
174− if ((attributes != undefined) && attributes["field"]) {
176+ var hasAttributesFlag = (attributes != undefined) && attributes["field"];
178+ if (hasAttributesFlag) {
175 if (attributes["max-count"]) {
179 if (attributes["max-count"]) {
176− return attributes["max-count"];
180+ numOfAttributes = attributes["max-count"];
179− return 0;
183+ return hasAttributesFlag
181− property var model: []
183 onNumOfAttributesChanged: {
186 onNumOfAttributesChanged: {
184 model = []
187 model = []