File tree Expand file tree Collapse file tree 4 files changed +4
-16
lines changed Expand file tree Collapse file tree 4 files changed +4
-16
lines changed Original file line number Diff line number Diff line change 33
33
@click =" addStateToComp"
34
34
/>
35
35
</div >
36
- <p v-if =" !this. componentMap[this. activeComponent].state.length" >
36
+ <p v-if =" !componentMap[activeComponent].state.length" >
37
37
No state in component
38
38
</p >
39
- <a
40
- v-else
41
- v-for =" state in this.componentMap[this.activeComponent].state"
42
- :key =" state"
43
- >
39
+ <a v-else v-for =" state in componentMap[activeComponent].state" :key =" state" >
44
40
<q-list class =" list-item" dense bordered separator >
45
41
<q-item clickable v-ripple class =" list-item" >
46
42
<q-item-section >
Original file line number Diff line number Diff line change @@ -191,9 +191,6 @@ const activeRouteDisplay = computed(() => routes.value[activeRoute.value]);
191
191
const activeComponentData = cloneDeep (activeComponentObj .value );
192
192
193
193
const options = computed (() => {
194
- console .log (" activeComponentObj is " , activeComponentObj)
195
- console .log (" activeComponentObj.value is " , activeComponentObj .value )
196
- console .log (" activeComponentObj.value.componentName is " , activeComponentObj .value .componentName )
197
194
if (activeComponent .value !== " " ) {
198
195
newName .value = activeComponentObj .value .componentName ;
199
196
childrenSelected .value = [];
Original file line number Diff line number Diff line change @@ -156,7 +156,6 @@ function buildTreeChildren(array) {
156
156
}
157
157
outputArray .push (outputObj);
158
158
});
159
- console .log (" outputArray is " , outputArray)
160
159
return outputArray;
161
160
}
162
161
}
@@ -168,10 +167,7 @@ treeData.value = buildTree(componentMap.value);
168
167
watch (
169
168
componentMap,
170
169
() => {
171
- console .log (" Inside of watch: Tree componentMap is " , componentMap .value );
172
- console .log (" Inside of watch: Tree activeComponent is " , activeComponent .value );
173
170
treeData .value = buildTree (componentMap .value );
174
- console .log (" Inside of watch: Tree treeData.value is " , treeData .value )
175
171
},
176
172
177
173
{ deep: true }
Original file line number Diff line number Diff line change @@ -171,11 +171,10 @@ const actions = {
171
171
addStateToComponent ( payload ) {
172
172
const active = this . componentMap [ this . activeComponent ] ;
173
173
174
- if ( ! this . activeComponentObj . state ) this . activeComponentObj . state = payload ;
174
+ if ( ! active . state ) active . state = payload ;
175
175
else {
176
176
for ( const s of payload ) {
177
- if ( this . activeComponentObj . state . includes ( s ) )
178
- this . activeComponentObj . state . push ( s ) ;
177
+ if ( ! active . state . includes ( s ) ) active . state . push ( s ) ;
179
178
}
180
179
}
181
180
You can’t perform that action at this time.
0 commit comments