Skip to content

Commit 99e9038

Browse files
committed
fix addIndex objects in name array
Signed-off-by: Tobias Gurtzick <magic@wizardtales.com>
1 parent c923c3a commit 99e9038

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/learn.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ class STD {
260260

261261
addIndex (t, i, c, u) {
262262
if (Array.isArray(c)) {
263-
c.forEach(x => this.checkColumn(t, x));
263+
c.forEach(x => this.checkColumn(t, typeof x === 'object' ? x.name : x));
264264
} else {
265265
this.checkColumn(t, c);
266266
}

0 commit comments

Comments
 (0)