From df35230c13646d547c9531050a7625e00a72e28f Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Wed, 5 Apr 2023 18:53:57 +0200 Subject: [PATCH] fix search outputs in apps with null object --- frontend/src/lib/components/apps/editor/appUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/lib/components/apps/editor/appUtils.ts b/frontend/src/lib/components/apps/editor/appUtils.ts index 387d681858..f287757dc6 100644 --- a/frontend/src/lib/components/apps/editor/appUtils.ts +++ b/frontend/src/lib/components/apps/editor/appUtils.ts @@ -600,7 +600,7 @@ export function recursivelyFilterKeyInJSON( search: string, extraSearch?: string | undefined ): object { - if (json === null || json === undefined) { + if (json === null || json === undefined || typeof json != 'object') { return json } if (!search || search == '') {