Skip to content

Commit

Permalink
Improve trigger method in FilterActionDefinitionFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasstein committed Aug 22, 2023
1 parent 6ad94d8 commit 751c302
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ export default class FilterActionDefinitionFactory {
},
trigger(tocItem) {
const ref = tocItem.ref;
if (ref._initialDefinitionExpression && ref._initialDefinitionExpression !== ref.definitionExpression) {
if (ref._initialDefinitionExpression !== undefined
&& ref._initialDefinitionExpression !== ref.definitionExpression) {
if (ref._initialDefinitionExpression) {
ref.definitionExpression = ref._initialDefinitionExpression;
}
Expand Down

0 comments on commit 751c302

Please sign in to comment.