From 64db4da332ace16ac355267d147d6d31303118f5 Mon Sep 17 00:00:00 2001 From: Martin Vladic Date: Thu, 17 Oct 2024 22:11:01 +0200 Subject: [PATCH] fixed expression builder dialog for the user properties --- packages/project-editor/flow/user-property.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/project-editor/flow/user-property.tsx b/packages/project-editor/flow/user-property.tsx index 483786f9..5e164483 100644 --- a/packages/project-editor/flow/user-property.tsx +++ b/packages/project-editor/flow/user-property.tsx @@ -286,10 +286,9 @@ function getPropertyInfoForUserProperty( params?: IOnSelectParams ) => { (object as any)._eez_parent = parent; - - await onSelect(object, propertyInfo, params); - + const result = await onSelect(object, propertyInfo, params); delete (object as any)._eez_parent; + return result; }; return propertyInfo;