You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a number of records in my collection; some have "Active" in status property and others have "Inactive".
In AdminJS frontend, when I filter status field to show me only "Active" status records, it returns both Active and Inactive. For Inactive status filter, it works fine.
I have a number of records in my collection; some have "Active" in status property and others have "Inactive".
In AdminJS frontend, when I filter status field to show me only "Active" status records, it returns both Active and Inactive. For Inactive status filter, it works fine.
I believe the reason could be in file "src/utils/convert-filter.ts", line number 19.
Link; https://github.com/SoftwareBrothers/adminjs-mongoose/blob/master/src/utils/convert-filter.ts#L19
It's searching a property using regex, which returns both Active and Inactive since both values contain "Active".
Is there any workaround we can do to make sure only either Active or Inactive records get returned by the list action?
The text was updated successfully, but these errors were encountered: