Skip to content

Commit

Permalink
Improve saving of initialDefinitionExpression in QueryController.js
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasstein committed Aug 22, 2023
1 parent 751c302 commit 0f620c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/js/bundles/dn_querybuilder/QueryController.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default class QueryController {
layer.definitionExpression = layer._initialDefinitionExpression;
}
// save initial definitionExpression to enable reversion to initial state
if (!layer._initialDefinitionExpression) {
if (layer._initialDefinitionExpression === undefined) {
layer._initialDefinitionExpression = layer.definitionExpression ? layer.definitionExpression : "1=1";
}
}
Expand Down

0 comments on commit 0f620c9

Please sign in to comment.