Skip to content

Commit ba02ed6

Browse files
committed
fix: do not filter input variables
1 parent 082e556 commit ba02ed6

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/components/Input/InputEditor.jsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ import classNames from 'classnames';
1313

1414
import theme from './InputEditorTheme';
1515

16-
import { getBusinessObject } from 'bpmn-js/lib/util/ModelUtil';
17-
1816
import { getAutocompletionExtensions } from '../../utils/autocompletion';
1917

2018
const fromPropAnnotation = Annotation.define();
@@ -35,11 +33,7 @@ export default function InputEditor({
3533
variablesForElement = DEFAULT_VARIABLES_FOR_ELEMENT
3634
}) {
3735
const autocompletions = useMemo(() => {
38-
const variablesForElementAutocompletions = variablesForElement.filter(variable => {
39-
40-
// Filter out variables originating from the element's inputs or outputs
41-
return variable.origin.every(origin => origin !== getBusinessObject(element));
42-
}).map(({ name, detail, info }) => ({
36+
const variablesForElementAutocompletions = variablesForElement.map(({ name, detail, info }) => ({
4337
label: name,
4438
type: 'variable',
4539
info: () => getAutocompletionInfo(info, 'Process variable'),

0 commit comments

Comments
 (0)