Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initMultipleTables trows a TypeError: "tablesArray[i] is undefined" #534

Closed
slaap123 opened this issue Jan 15, 2019 · 3 comments
Closed

Comments

@slaap123
Copy link

yadcf.initMultipleTables(tables, [
{
filter_container_id: 'multi-table-filter',
filter_default_label: 'Filter all tables!',
column_data_type: "rendered_html",
html_data_type: "text",
}]);

gives a an error on the line 4296
"setOptions(tablesSelectors + '_' + column_number_str, dummyArr, tablesArray[i].table);"
the i in this line comes from a for loop that is clossed on line 4293

changing the line to "setOptions(tablesSelectors + '_' + column_number_str, dummyArr);" as it was in version 9.3 fixes the issue.
but if you want to keep the specifix table in the set option seround the line i a new for loop

@vedmack
Copy link
Owner

vedmack commented Jan 17, 2019

@slaap123 please provide a link to test case

@vedmack vedmack self-assigned this Jan 17, 2019
@vedmack vedmack removed their assignment Jan 17, 2019
@slaap123
Copy link
Author

Here you go,
https://jsfiddle.net/z3nt6j9m/

@vedmack
Copy link
Owner

vedmack commented Jan 28, 2019

fixed in 0.9.4.beta.14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants