fix: default length to available fields when undefined
(cherry picked from commit 20c087a93427b64850885b5296dbd00292bfbe43)
This commit is contained in:
parent
3831e2f5da
commit
b7deeb0c1b
1 changed files with 1 additions and 0 deletions
|
|
@ -77,6 +77,7 @@ export default class ListSettings {
|
|||
let field_count = this.settings.total_fields;
|
||||
|
||||
if (!field_count) {
|
||||
field_count = me.fields.length;
|
||||
if (field_count < 4) {
|
||||
field_count = 4;
|
||||
} else if (field_count > 10) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue