Closed
Description
I'm attempting to dockerize my fng projects. When using fng with the latest mongodb, attempting to 'list' my models returns the error:
Invalid query
Failed to parse: { find: "leaders", filter: {}, projection: {}, skip: {}, limit: 60 }. 'skip' field must be numeric.
I tracked this down to an assertion in forms-angular.js:
if (value && value !== '' ) {
///build querystring
}
If the skip parameter happens to be 0
(Boolean(0) == false), this assertion will fail, and no skip parameter will be added to the querystring. I modified the assertion and the error is gone:
if (value && value !== '' || typeof(value) == "number" ) {
///build querystring
}
Metadata
Metadata
Assignees
Labels
No labels