Fix filtering by number

Fixes #3917
This commit is contained in:
rijkvanzanten
2021-02-26 17:30:20 -05:00
parent 827e332cec
commit 09a4b673eb

View File

@@ -300,7 +300,7 @@ export async function applySearch(
function getFilterPath(key: string, value: Record<string, any>) {
const path = [key];
if (Object.keys(value)[0].startsWith('_') === true) {
if (typeof Object.keys(value)[0] === 'string' && Object.keys(value)[0].startsWith('_') === true) {
return path;
}