This code change to FilterQuery.js will address the problem described in issue #616. The old code worked with the todoObject as it behaved in version 1.2.9 of sleek, but fails in 2.0.6. I think that the old version must have represented missing projects or contexts as undefined or nil, while the new version represents this case as an empty list. This PR adds an explicit check of the length of the lists.
This code change to FilterQuery.js will address the problem described in issue #616. The old code worked with the todoObject as it behaved in version 1.2.9 of sleek, but fails in 2.0.6. I think that the old version must have represented missing projects or contexts as undefined or nil, while the new version represents this case as an empty list. This PR adds an explicit check of the length of the lists.