Skip to content

Commit c020ca5

Browse files
author
Guillaume Chau
committed
fix(DataField): should not expand by default if too many values if custom
1 parent 44fbe27 commit c020ca5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/app-frontend/src/components/DataField.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,11 @@ export default {
265265
},
266266
267267
data () {
268+
const value = this.field.value && this.field.value._custom ? this.field.value._custom.value : this.field.value
268269
return {
269270
contextMenuOpen: false,
270271
limit: 20,
271-
expanded: this.depth === 0 && this.field.key !== '$route' && (subFieldCount(this.field.value) < 5)
272+
expanded: this.depth === 0 && this.field.key !== '$route' && (subFieldCount(value) < 6)
272273
}
273274
},
274275

0 commit comments

Comments
 (0)