We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I pass constraints like this:
const constraints = [ //list of non overlapping constraints ['Tennis', 'Climbing'], ['Handstands', 'Climbing'], ['Trapeze', 'Tennis'], ['Tennis', 'Handstands', 'Trapeze'] ]
All works fine. But if I pass functions, like this:
const constraints = [ //list of non overlapping constraints ['Tennis', 'Climbing'], ['Handstands', 'Climbing'], ['Trapeze', 'Tennis'], ['Tennis', 'Handstands', 'Trapeze'], (timetable) => timetable['8:00'].indexOf('Climbing') !== -1 ? ['Climbing'] : [], (timetable) => timetable['10:00'].indexOf('Tennis') !== -1 ? ['Climbing'] : [], (timetable) => timetable['9:00'].indexOf('Trapeze') !== -1 ? ['Climbing'] : [] ]
I have several "undefined" allocated in the slots.
Of course, the values are differents, this is a example. I have 200+ constraints. If I use just the arrays constraints, all works fine.
Any Idea?
The text was updated successfully, but these errors were encountered:
@robbymichael1 did you ever figure this out?
Sorry, something went wrong.
No branches or pull requests
When I pass constraints like this:
const constraints = [ //list of non overlapping constraints
['Tennis', 'Climbing'],
['Handstands', 'Climbing'],
['Trapeze', 'Tennis'],
['Tennis', 'Handstands', 'Trapeze']
]
All works fine. But if I pass functions, like this:
const constraints = [ //list of non overlapping constraints
['Tennis', 'Climbing'],
['Handstands', 'Climbing'],
['Trapeze', 'Tennis'],
['Tennis', 'Handstands', 'Trapeze'],
(timetable) => timetable['8:00'].indexOf('Climbing') !== -1 ? ['Climbing'] : [],
(timetable) => timetable['10:00'].indexOf('Tennis') !== -1 ? ['Climbing'] : [],
(timetable) => timetable['9:00'].indexOf('Trapeze') !== -1 ? ['Climbing'] : []
]
I have several "undefined" allocated in the slots.
Of course, the values are differents, this is a example.
I have 200+ constraints.
If I use just the arrays constraints, all works fine.
Any Idea?
The text was updated successfully, but these errors were encountered: