Skip to content

Commit

Permalink
fix: display text editor for non-FEEL literal expression
Browse files Browse the repository at this point in the history
  • Loading branch information
barmac committed May 6, 2024
1 parent e0ff1e6 commit 7764a0a
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component } from 'inferno';

import { is } from 'dmn-js-shared/lib/util/ModelUtil';
import { is, isFeel } from 'dmn-js-shared/lib/util/ModelUtil';

import EditableComponent from 'dmn-js-shared/lib/components/EditableComponent';
import LiteralExpression from 'dmn-js-shared/lib/components/LiteralExpression';
Expand Down Expand Up @@ -32,14 +32,9 @@ class _LiteralExpressionEditorComponent extends Component {
}

isFeel() {
return this.getExpressionLanguage() === 'feel';
}

getExpressionLanguage() {
const businessObject = this.getLiteralExpression();

return businessObject.expressionLanguage ||
this._expressionLanguages.getDefault().value;
return isFeel(businessObject);
}

_getVariables() {
Expand Down

0 comments on commit 7764a0a

Please sign in to comment.