Skip to content

Commit 031c212

Browse files
committed
4796 client - Fix stray 0 rendered before property when lookup deps are defined but empty
1 parent ddfb722 commit 031c212

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • client/src/pages/platform/workflow-editor/components/properties

client/src/pages/platform/workflow-editor/components/properties/Property.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,10 @@ const Property = ({
195195
key={`${currentNode?.name}_${currentComponent?.operationName}_${name}`}
196196
>
197197
{control &&
198-
(propertiesDataSource?.propertiesLookupDependsOn?.length ||
199-
optionsDataSource?.optionsLookupDependsOn?.length) && (
198+
!!(
199+
propertiesDataSource?.propertiesLookupDependsOn?.length ||
200+
optionsDataSource?.optionsLookupDependsOn?.length
201+
) && (
200202
<FormLookupValuesWatcher
201203
arrayIndex={arrayIndex}
202204
control={control}

0 commit comments

Comments
 (0)